httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@ast.cam.ac.uk (David Robinson)
Subject Re: WWW Form Bug Report: "strings don't support quoted double-quote" on SunOS 4.x (fwd)
Date Tue, 19 Dec 1995 15:33:00 GMT
Forwarded message:
> From: scott@igc.apc.org
> Date: Mon Dec 11 22:12:52 1995
> Subject: WWW Form Bug Report: "strings don't support quoted double-quote" on SunOS 4.x
> 
> With NCSA we would do
> 
> <!--#exec cmd="[ -n \"$HTTP_REFERER\" ] && echo $HTTP_REFERER >> .refer"-->
> 
> but Apache doesn't seem to support \" in a string.
> 
> Not a biggy, we can instead do
> 
> <!--#exec cmd="set -x; [ X$HTTP_REFERER != X ] && echo $HTTP_REFERER >>
.refer"

This is data embedded in an SGML context; the correct solution is to use
the SGML entity names.

i.e. either
<!--#exec cmd="[ -n &quot;$HTTP_REFERER&quot; ] &amp;&amp; echo $HTTP_REFERER
>> .refer"-->

or
<!--#exec cmd='[ -n "$HTTP_REFERER" ] &amp;&amp; echo $HTTP_REFERER >> .refer'-->

I think that NCSA httpd should not be doing anything with \" in the data
for a tag attribute.

 David Robinson.

Mime
View raw message