mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
MFB51: Fixed bug #36459 (Incorrect adding PHPSESSID to links, which
contains \r\n).
This commit is contained in:
parent
40a610887d
commit
1a3bb9f4bd
41
ext/session/tests/bug36459.phpt
Normal file
41
ext/session/tests/bug36459.phpt
Normal file
@ -0,0 +1,41 @@
|
||||
--TEST--
|
||||
bug #31454 (Incorrect adding PHPSESSID to links, which contains \r\n)
|
||||
--SKIPIF--
|
||||
<?php include('skipif.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
error_reporting(E_ALL);
|
||||
|
||||
ini_set('session.use_trans_sid', 1);
|
||||
ini_set('session.use_cookies', 0);
|
||||
ini_set('session.name', 'sid');
|
||||
|
||||
session_start();
|
||||
|
||||
# Do not remove \r from this tests, they are essential!
|
||||
?>
|
||||
<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"
|
||||
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" style="font: normal 11pt Times New Roman">correct link</a>
|
||||
</body>
|
||||
</html>
|
||||
--EXPECTF--
|
||||
<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=%s"
|
||||
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=%s" style="font: normal 11pt Times New Roman">correct link</a>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user