|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-02-20 10:39 UTC] muhtarov at oviont dot ru
Description: ------------ There is problem while adding PHPSESSID to links, which contain \r\n after some attribute. Part of my .htaccess file: php_value session.use_trans_sid 1 php_value session.name "sid" Reproduce code: --------------- <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2" &sid=brvsemsd03-ynw9wn4 style="font: normal 9pt Times New Roman">test</a> Expected result: ---------------- <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2&sid=brvsemsd03-ynw9wn4" style="font: normal 9pt Times New Roman">test</a> PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 07:00:01 2025 UTC |
With the latest PHP version your reproduce script results in the following (correct) output: <html> <head> <title>Bug #36459 Incorrect adding PHPSESSID to links, which contains \r\n</title> </head> <body> <p>See source html code</p> <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2&sid=78111a67c95dcfc3569705b24296b243" style="font: normal 11pt Times New Roman">incorrect link</a><br /> <br /> <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2&sid=78111a67c95dcfc3569705b24296b243" style="font: normal 11pt Times New Roman">correct link</a> </body>