Bug #76209 [Opn->Dup]: Unexpected behaviour for output_add_rewrite_var treating links to url fragments
Edit report at https://bugs.php.net/bug.php?id=76209&edit=1
ID: 76209
Updated by: requinix@php.net
Reported by: michele dot scaramal at sella dot it
Summary: Unexpected behaviour for output_add_rewrite_var
treating links to url fragments
-Status: Open
+Status: Duplicate
Type: Bug
Package: Output Control
Operating System: windows, apache 2.4.33 win 64
PHP Version: 7.2.4
Block user comment: N
Private report: N
New Comment:
Duplicate of bug #74892
Previous Comments:
------------------------------------------------------------------------
[2018-04-11 14:35:15] michele dot scaramal at sella dot it
Description:
------------
The function output_add_rewrite_var is not treating correctly links to fragments on the same html
document.
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
Test script:
---------------
ob_start();
output_add_rewrite_var('var', 'value');
echo "<a href='#anchor'>anchor link</a>";
ob_end_flush();
die;
Expected result:
----------------
Result 7.1.16:
<a href='#anchor'>anchor link</a>Array
Actual result:
--------------
Result 7.2.4:
<a href='#anchor/?var=value'>anchor link</a>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76209&edit=1
Thread (2 messages)