PDA

View Full Version : [CLOSED][3.0 RC1][DUP] HttpProxy parameter of 0 changing to empty string



cdasilva
17 Apr 2009, 10:33 AM
Following code in ext-base.js causes problems with HttpProxy:



for(key in o){Ext.each(o[key]||key,function(val,i){buf.push("&",e(key),"=",val!=key?e(val):"");});}


When passing parameters such as "start=0", the o[key]||key results in comparison of 0||"start" which results in val being equal to "start" instead of "0". This results in the eventual parameters on the URL being "start=" instead of expected "start=0".

mschwartz
17 Apr 2009, 11:15 AM
http://extjs.com/forum/showthread.php?t=65635

Fix is supplied in the thread

evant
17 Apr 2009, 1:56 PM
As the previous posted said, this a dupe, closing this off.