|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-11-25 12:41 UTC] liske at informatik dot hu-berlin dot de
Description:
------------
Including SSI-files via the virtual()-directive into PHP-scripts causes "&" to result as "&".
Reproduce code:
---------------
in the PHP-Code:
...
virtual("../header.html.inc?Veröffentlichungen");
...
in the SSI-file located at "../header.html.inc":
<head>
<title><!--#echo var="QUERY_STRING" --></title>
</head>
...
Expected result:
----------------
I excepted the resulting HTML-page to look like:
<head>
<title>Veröffentlichungen</title>
</head>
...
Actual result:
--------------
What I get is:
<head>
<title>Ver&ouml;ffentlichungen</title>
</head>
...
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 16:00:01 2025 UTC |
So any call of virtual("foo.html?p=1&q=2"); will result in a apache-subrequest for "foo.html?p=1&q=2" ? The query string is not the same any more. It is not "urlencoded": URL-encoding transforms "&" to "%26" and ";" to "%3B". This is not the case here. And, Apache does it right: Within SSI-files the usage of <!--#include virtual="../header.html.inc?Veröffentlichungen" --> works fine, as expected.