php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6178 URI Re-writing failure
Submitted: 2000-08-15 14:18 UTC Modified: 2000-08-15 14:43 UTC
From: blake at intechra dot net Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.1pl2 OS: Linux (RedHat 6.2)
Private report: No CVE-ID: None
 [2000-08-15 14:18 UTC] blake at intechra dot net
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-15 14:43 UTC] hholzgra@php.net
this code has already gone through a rewrite
that fixes this problem (amongs others)

try the cvs version or a recent snapshot from
http://snaps.php.net to see that it will be
fixed in 4.0.2
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 19:01:29 2024 UTC