St.Ego wrote:
> Revised to account for /'s
>
> <xar:set
name="return_url">str_replace('%2F', '/',
>
urlencode(htmlspecialchars_decode(urldecode(substr(xarServer
GetCurrentURL(),
> strlen(xarServerGetBaseURL()))))))</xar:set>
>
>
> St.Ego wrote:
>> I just rigged up the following. It's leet ninja
sh!t.
>>
>> <xar:set
>>
name="return_url">urlencode(htmlspecialchars_de
code(urldecode(substr(xarServerGetCurrentURL(),
>> strlen(xarServerGetBaseURL())))))</xar:set>
>>
>> In case you need properly formatted returnurl's in
your templates.
>>
>> Very useful for, say, multi-language setup.
>>
>> -St.Ego
So what exactly is a 'properly formatted returnurl'? I can
tell you one thing:
you cannot apply urlencode() to a complete URL without
trouble further down the
line.
-- JJ
_______________________________________________
Xaraya_devel mailing list
Xaraya_devel xaraya.com
http:
//xaraya.com/mailman/listinfo/xaraya_devel
|