#35390 [Bgs]: virtual() translates any "&" into "&"

From: Date: Sat, 26 Nov 2005 05:18:00 +0000
Subject: #35390 [Bgs]: virtual() translates any "&" into "&"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89020@lists.php.net to get a copy of this message
ID: 35390 User updated by: liske at informatik dot hu-berlin dot de Reported By: liske at informatik dot hu-berlin dot de Status: Bogus Bug Type: Apache related Operating System: Linux PHP Version: 5.1.0 New Comment: So any call of virtual("foo.html?p=1&q=2"); will result in a apache-subrequest for "foo.html?p=1&amp;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&ouml;ffentlichungen" --> works fine, as expected. Previous Comments: ------------------------------------------------------------------------ [2005-11-25 12:42:57] tony2001@php.net This is called "urlencoded" and is expected. I don't see any bugs here. ------------------------------------------------------------------------ [2005-11-25 12:41:03] liske at informatik dot hu-berlin dot de Description: ------------ Including SSI-files via the virtual()-directive into PHP-scripts causes "&" to result as "&amp;". Reproduce code: --------------- in the PHP-Code: ... virtual("../header.html.inc?Ver&ouml;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&ouml;ffentlichungen</title> </head> ... Actual result: -------------- What I get is: <head> <title>Ver&amp;ouml;ffentlichungen</title> </head> ... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35390&edit=1

« previous php.bugs (#89020) next »