Edit report at https://bugs.php.net/bug.php?id=65190&edit=1
ID: 65190
Comment by: anon at anon dot anon
Reported by: remoteshaman dot com at gmail dot com
Summary: Bug: ampersand "&" not removed completely "amp;"
in query string!
Status: Not a bug
Type: Bug
Package: Scripting Engine problem
Operating System: CentOS
PHP Version: 5.3.26
Block user comment: N
Private report: N
New Comment:
Yes it's not a bug, it's a feature. `&` is an HTML thing. It has nothing to
do with query strings except when you're encoding them in HTML, which you're
not; you're just putting the `&` literally into the URL. It doesn't belong
there. Remove it.
Previous Comments:
------------------------------------------------------------------------
[2013-07-03 10:26:40] remoteshaman dot com at gmail dot com
And "arg_sepErator" this a not directive!:) and "arg_sepArator" so - have
"arg_separator.output" and "arg_separator.input" but this not solved issue!
------------------------------------------------------------------------
[2013-07-03 10:18:48] remoteshaman dot com at gmail dot com
this string
"?f=c3c0e998b57b4a2b8046f12a89dfff49-cache-plg_jch_optimize-e9898cc42c78127028aba1dab284f305&type=js&d=30"
get and print_r($_REQUEST) after set (php_flag arg_separator.input "&") in
.htaccess
------------------------------
Array
(
[f] => 2
[41e3cc488db] =>
[92b567b7fa14ea5c66-cache-plg_jch_optimize-] =>
[ab5] =>
[adafe538259f] =>
[d7936372397432&type] => css&d=3
)
------------------------------
this string
"?f=c3c0e998b57b4a2b8046f12a89dfff49-cache-plg_jch_optimize-e9898cc42c78127028aba1dab284f305&type=js&d=30"
get and print_r($_REQUEST) after set (php_value arg_separator.input "&")
in .htaccess
------------------------------
Array
(
[f] => 2041e3cc488db092b567b7f
[14e] =>
[5c66-c] =>
[che-] =>
[lg_jch_o] =>
[ti] =>
[ize-0] =>
[b50] =>
[d] => 30
[fe538259f0d7936372397432] =>
[ty] =>
[e] => css
)
------------------------------
------------------------------------------------------------------------
[2013-07-03 07:51:21] [email protected]
The default arg_seperator is just &
You can set it to & in your ini if you like.
------------------------------------------------------------------------
[2013-07-03 07:24:46] remoteshaman dot com at gmail dot com
Description:
------------
Bug: ampersand "&" not removed completely "amp;" in query string!
Test script:
---------------
<?php
// If insert in broser string
"?f=c3c0e998b57b4a2b8046f12a89dfff49-cache-plg_jch_optimize-e9898cc42c78127028aba1dab284f305&type=js&d=30"
and print_r($_REQUEST) we get this result:
// Array
// (
// [f] =>
2041e3cc488db092b567b7fa14ea5c66-cache-plg_jch_optimize-35c9937b8d9d493d64405d18f2d6f5aa
// [amp;type] => js
// [amp;d] => 30
// )
// Bug: ampersand "&" not removed completely "amp;"!
// or this a feature?:))
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65190&edit=1