You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Charles Frankel <fr...@peakpeak.com> on 2002/05/27 16:47:24 UTC

mod_perl interpretation of text/html output

Dear List,

A modification to the sample Hello.pm module yielded the odd result below.
Note how the outgoing html which the browser receives has been modified.
The html content is important (almost all html works correctly) and I have
presented a simple example.

Changing a single line in to
    $r->puts(<<"END");
  <html><head></head><a href="http://rd.yahoo.com/M=2"> <img
src="x"></a></html>
  END
results in output to the browser of (notice the commented/mangled a href):
  <html><head></head><!--ref="http://rd.yahoo.com/M=2"  <img src="x"
<--></html>


Platform:
This issue was exhibited in the latest (as of May 28) win32 bundle:
ftp://theoryx5.uwinnipeg.ca/pub/other/Apache2.tar.gz. as well as the
equivalent Linux Apache 2.0/mod_perl 1.99 variant.


Charles


Re: mod_perl interpretation of text/html output

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Mon, 27 May 2002, Charles Frankel wrote:

> Dear List,
>
> A modification to the sample Hello.pm module yielded the odd result below.
> Note how the outgoing html which the browser receives has been modified.
> The html content is important (almost all html works correctly) and I have
> presented a simple example.
>
> Changing a single line in to
>     $r->puts(<<"END");
>   <html><head></head><a href="http://rd.yahoo.com/M=2"> <img
> src="x"></a></html>
>   END
> results in output to the browser of (notice the commented/mangled a href):
>   <html><head></head><!--ref="http://rd.yahoo.com/M=2"  <img src="x"
> <--></html>
>
>
> Platform:
> This issue was exhibited in the latest (as of May 28) win32 bundle:
> ftp://theoryx5.uwinnipeg.ca/pub/other/Apache2.tar.gz. as well as the
> equivalent Linux Apache 2.0/mod_perl 1.99 variant.

strange ... I tried the above example as given, on Win32, and it
didn't mangle things ... I also tried some random bad html, and
that came out verbatim ... What are your directives for this
location? Could you also send the complete Hello.pm you used? It
looks pretty short ....

best regards,
randy kobes


Re: mod_perl interpretation of text/html output

Posted by Per Einar Ellefsen <pe...@skynet.be>.
At 16:47 27.05.2002, Charles Frankel wrote:
><html><head></head><!--ref="<http://rd.yahoo.com/M=2>http://rd.yahoo.com/M=2" 
><img src="x" <--></html>

Hmm, as Randy doesn't seem to have this problem, this looks very much like 
some firewall/ad-blocker thing like Norton Internet Security working 
between you and your Apache.

>--

Per Einar Ellefsen
per.einar@skynet.be