Perhaps at some point there were some variables that were not
actually delivered via GET - but encoded anyway? 

Some systems will
send stuff in an encoded format - not necessarily in a real URL query
string - because it's an easy way to escape special characters like
string or list delimiters. 

So URLdecode() is provided for those
circumstances, but is not really required usage for parsing GET vars in
CFML. 

---
Al 

On 2013-03-06 08:32, Jari Ketola wrote: 

> Thank you
for clearing this up, Als. =) I wonder why I had added the URLdecode()
initially.
> 
> I've actually found the automatic variable
handling/casting a bit problematic at times. Especially when comparing
strings using "IS" operator.
> 
> IIRC according to ColdFusion
"1000000000000000000012345" is "1E+24" is "1000000000000000000012346".
>

> Oh well, good to know I can safely get rid of URLDecode() in this
case anyway. =)
> 
> Jari
> 
> On Wednesday, March 6, 2013 2:22:33 AM
UTC+2, Alan Williamson wrote: 
> 
>> Yes, by the time the variable hits
the CFML page, it has already been 
>> decoded and ready for you to use.

>> 
>> What sort of language you think we are running here? PHP? ;) 
>>

>> On 05/03/2013 08:16, Jari Ketola wrote: 
>>> Hi everyone, 
>>> 
>>>
Can't believe I haven't stumbled upon this before. I was just doing 
>>>
URL decoding of some AJAX submitted data (encoded using 
>>>
EncodeURIComponent() JS function), when I noticed that apparently 
>>>
OpenBD (and CF?) decodes URL parameters automatically. 
>>> 
>>> Test
case:
> 
> -- 
> -- 
> online documentation: http://openbd.org/manual/
[1]
> http://groups.google.com/group/openbd?hl=en [2]
> 
> --- 
> You
received this message because you are subscribed to the Google Groups
"Open BlueDragon" group.
> To unsubscribe from this group and stop
receiving emails from it, send an email to
[email protected].
> For more options, visit
https://groups.google.com/groups/opt_out [3].
 

Links:
------
[1]
http://openbd.org/manual/
[2]
http://groups.google.com/group/openbd?hl=en
[3]
https://groups.google.com/groups/opt_out

-- 
-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Open 
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to