|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-02-05 09:40 UTC] mian at thirty4 dot com
With transparent session ids turned on, and cookies disabled, the auto sid function sometimes breaks on urls that have other variables passed on the url. SID inserted: href="skinview.php??sid=2a5ae9d5d09a578644ed872068ba443carea=winamp2&skin=Metallic+Nebula" Original script: href="skinview.php?area=winamp2&skin=Metallic+Nebula" SID inserted: href="profile.php?user=&sid=2a5ae9d5d09a578644ed872068ba443cshark3000" Original script: href="profile.php?user=shark3000" Problem only occurs on some URLS on some of the pages, is real random, wish i could find the connection on the broken URLS. See http://beta.skinz.org for more live demo. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 03:00:01 2025 UTC |
this is a transcript from phpdev list that should explain what's wrong here: On Mon, 3 Jul 2000, Hartmut Holzgraefe wrote: > there is some problem related to the interaction of output buffering > (i guess) and --trans-sid-id url rewriting > > the problem is that the function performing the actual rewrite > (url_scanner() in ext/standard/url_scanner.c) will be provided > with chunks of data that may contain incomplete parts of an url > spanning across a buffer boundary > > as the url_scanner() does not know that it was provided with > incomplete data it will attach the session id parameter to the > end of the url as it appears in the buffer passed into it as a > parameter, and in the next step the remaining part of the url > located at the very beginning of the next chunk of output is > appended to the session id parameter just added, with the final > result of an url with the session id parameter stuffed into the > middle of the url Correct analysis. The fix is to make the url scanner context-sensitive, so that it will buffer and correctly patch URLs. Please use output buffering in the meantime. - Sascha