Bug #76209 [NEW]: Unexpected behaviour for output_add_rewrite_var treating links to url fragments
From: michele dot scaramal at sella dot it
Operating system: windows, apache 2.4.33 win 64
PHP version: 7.2.4
Package: Output Control
Bug Type: Bug
Bug description:Unexpected behaviour for output_add_rewrite_var treating links to url fragments
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 bug report at https://bugs.php.net/bug.php?id=76209&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76209&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76209&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76209&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76209&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76209&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76209&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76209&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76209&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76209&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76209&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76209&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76209&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76209&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76209&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76209&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76209&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76209&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76209&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76209&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76209&r=mysqlcfg
Thread (2 messages)
- michele dot scaramal at sella dot it