#43234 [Opn->Bgs]: URL rewrite mechanism
| From: | jani@php.net | Date: | Sat, 10 Nov 2007 22:19:14 +0000 |
| Subject: | #43234 [Opn->Bgs]: URL rewrite mechanism | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-119423@lists.php.net to get a copy of this message | ||
ID: 43234
Updated by: jani@php.net
Reported By: rinat at avtorif dot ru
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: windows 2000
PHP Version: 5.2.5
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2007-11-10 09:55:42] rinat at avtorif dot ru
Sorry, correct Reproduce code here:
----------------------------------
<?
session_name('sid');
session_start();
$sid = session_id();
if (SID) output_add_rewrite_var(session_name(), session_id());
?>
<script>
if (navigator.cookieEnabled) alert('To take effect, please turn off
cookie support in your browser!');
</script>
<a href="/">correct link</a><br />
<a href="/?sid=<?=$sid?>">incorrect link?</a><br />
<form action="/">
<input type="hidden" name="sid" value="<?=$sid?>" />
<input type="submit">
</form>
------------------------------------------------------------------------
[2007-11-10 09:50:56] rinat at avtorif dot ru
Description:
------------
URL rewrite mechanism just add variables in existing links, but not
replace.
Reproduce code:
---------------
<script>
if (navigator.cookieEnabled) alert('To take effect, please turn off
cookie support in your browser!');
</script>
<a href="/?sid=qfa0pr1tdrs5quuiglsd239s03">correct link</a><br />
<a
href="/?sid=qfa0pr1tdrs5quuiglsd239s03&sid=qfa0pr1tdrs5quuiglsd239s03">incorrect
link?</a><br />
<form action="/"><input type="hidden" name="sid"
value="qfa0pr1tdrs5quuiglsd239s03" />
<input type="hidden" name="sid"
value="qfa0pr1tdrs5quuiglsd239s03"
/>
<input type="submit">
</form>
Expected result:
----------------
<script>
if (navigator.cookieEnabled) alert('To take effect, please turn off
cookie support in your browser!');
</script>
<a href="/?sid=qfa0pr1tdrs5quuiglsd239s03">correct link</a><br />
<a href="/?sid=qfa0pr1tdrs5quuiglsd239s03">incorrect link?</a><br />
<form action="/">
<input type="hidden" name="sid"
value="qfa0pr1tdrs5quuiglsd239s03"
/>
<input type="submit">
</form>
Actual result:
--------------
<script>
if (navigator.cookieEnabled) alert('To take effect, please turn off
cookie support in your browser!');
</script>
<a href="/?sid=qfa0pr1tdrs5quuiglsd239s03">correct link</a><br />
<a
href="/?sid=qfa0pr1tdrs5quuiglsd239s03&sid=qfa0pr1tdrs5quuiglsd239s03">incorrect
link?</a><br />
<form action="/"><input type="hidden" name="sid"
value="qfa0pr1tdrs5quuiglsd239s03" />
<input type="hidden" name="sid"
value="qfa0pr1tdrs5quuiglsd239s03"
/>
<input type="submit">
</form>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43234&edit=1