You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jean-Pascal Houde <jp...@jphoude.qc.ca> on 2004/11/11 19:01:13 UTC

[users@httpd] SSI : echo encoding="url" ...

Hi,
I'm having a problem with the SSI echo directive.
I want to generate a dynamic link which contain the HTTP_REFERER
variable, so the text has to be encoded (url style)

According to the SSI manual I found on apache.org, the following should
work :

<!-- #echo encoding="url" variable="HTTP_REFERER" -->

However, the result I get is that string :

"http://houde.dyndns.org/%3fprod=x&serach=lkjlkj&q=aye&test=yes" <http://www.google.com/url?sa=D&q=http://houde.dyndns.org/%253fprod%3Dx%26serach%3Dlkjlkj%26q%3Daye%26test%3Dyes>

It seems that only the first "?" get encoded, every other "&" are not !

What am I doing wrong ? Shouldn't be all special characters be encoded ?

Thanks.