PHP 4.0 Bug #6178: URI Re-writing failure

From: Date: Tue, 15 Aug 2000 18:18:07 +0000
Subject: PHP 4.0 Bug #6178: URI Re-writing failure
Groups: php.dev 
Request: Send a blank email to php-dev+get-29025@lists.php.net to get a copy of this message
From: blake@intechra.net Operating system: Linux (RedHat 6.2) PHP version: 4.0.1pl2 PHP Bug Type: Session related Bug description: URI Re-writing failure I tracked a bug down to the handling of uri re-writing. I added an fprintf to the "ext/standard/url_scanner.c" file in the url_adapt function. When the source (src) is of the form "*<a hre" (eg. the full anchor tag is truncated accidentally by whatever function calls url_adapt), the parser doesn't recognize the anchor tag and it is not re-written. The subsequent call to url_adapt gets a source string similar to 'f="path/to/file.phtml"*' which also isn't recognized as an anchor tag, obviously. It seems that the url_adapt function should be altered to work on the whole file simultaneously or there should be added checks to ensure that anchor tags don't get split before being passed to the url_adapt function. I can supply an HTML page that breaks due to this bug.

« previous php.dev (#29025) next »