#44959 [NEW]: & is not recognized correctly by url_rewriter

From: Date: Sat, 10 May 2008 08:04:57 +0000
Subject: #44959 [NEW]: & is not recognized correctly by url_rewriter
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-124876@lists.php.net to get a copy of this message
From: xuefer at gmail dot com Operating system: gentoo PHP version: 5.2.6 PHP Bug Type: URL related Bug description: & is not recognized correctly by url_rewriter Description: ------------ &#dddd; in href is not recognized correctly by url rewriter scanner the original code was <a href="/def/"> and i encoded the first / to trap some bot that don't recognize & and nofollow correctly so it is <a href="&#47;def/" rel="nofollow">, nofollow is not required to reproduce the bug Reproduce code: --------------- <a href="&#47;def/" rel="nofollow"> Expected result: ---------------- <a href="&#47;abc/?SID=kkS2Qatbjdjmoy-7joKkM2#47" rel="nofollow"> Actual result: -------------- <a href="&?SID=kkS2Qatbjdjmoy-7joKkM2#47;abc/" rel="nofollow"> -- Edit bug report at http://bugs.php.net/?id=44959&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44959&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44959&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44959&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44959&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44959&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44959&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44959&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44959&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44959&r=support Expected behavior: http://bugs.php.net/fix.php?id=44959&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44959&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44959&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44959&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44959&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44959&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44959&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44959&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44959&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44959&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44959&r=mysqlcfg

« previous php.bugs (#124876) next »