#34242 [NEW]: "local" non-relative links do not get rewriten when trans_sid is on
| From: | marcus at quintic dot co dot uk | Date: | Wed, 24 Aug 2005 21:24:15 +0000 |
| Subject: | #34242 [NEW]: "local" non-relative links do not get rewriten when trans_sid is on | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-83961@lists.php.net to get a copy of this message | ||
From: marcus at quintic dot co dot uk
Operating system: All
PHP version: 4.4.0
PHP Bug Type: Session related
Bug description: "local" non-relative links do not get rewriten when trans_sid is on
Description:
------------
If trans_sid is set to 1, urls are rewritten with the current SID attached
to them so that sessions work in non-cookie environments. In the manual it
says that this does not rewrite non-relative urls as they are assumed to
point off site.
The problem is, this means that "local" non-relative links dont get
rewritten. So if I have a site at www.domain.xyz and two links
www.domain.xyz/page.html and /page.html only the second will get
rewritten.
Surely the correct behaviour would be to also rewrite such links? The
assumption that all non-relative links are non-local seems a bit lazy when
all you'd actually have to add is a quick check for the host. Admittedly
the host may have more than one name, but for the majority of sites I
wouldnt have thought this would be an issue.
--
Edit bug report at http://bugs.php.net/?id=34242&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34242&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34242&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34242&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34242&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34242&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34242&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34242&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34242&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34242&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34242&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34242&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34242&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34242&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34242&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34242&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34242&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34242&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34242&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34242&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34242&r=mysqlcfg