httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Pascal Houde ...@jphoude.qc.ca>
Subject [users@httpd] SSI : echo encoding="url" ...
Date Thu, 11 Nov 2004 18:01:13 GMT
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.

Mime
View raw message