mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
This commit is contained in:
parent
43f215a463
commit
b2f1ae9673
1 changed files with 42 additions and 42 deletions
|
@ -1,42 +1,42 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Bug #31454 (Incorrect adding PHPSESSID to links, which contains \r\n)
|
Bug #31454 (Incorrect adding PHPSESSID to links, which contains \r\n)
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php include('skipif.inc'); ?>
|
<?php include('skipif.inc'); ?>
|
||||||
--INI--
|
--INI--
|
||||||
session.use_trans_sid=1
|
session.use_trans_sid=1
|
||||||
session.use_cookies=0
|
session.use_cookies=0
|
||||||
session.use_only_cookies=0
|
session.use_only_cookies=0
|
||||||
session.name=sid
|
session.name=sid
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
# Do not remove \r from this tests, they are essential!
|
# Do not remove \r from this tests, they are essential!
|
||||||
?>
|
?>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Bug #36459 Incorrect adding PHPSESSID to links, which contains \r\n</title>
|
<title>Bug #36459 Incorrect adding PHPSESSID to links, which contains \r\n</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p>See source html code</p>
|
<p>See source html code</p>
|
||||||
<a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2"
|
<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 />
|
style="font: normal 11pt Times New Roman">incorrect link</a><br />
|
||||||
<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>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Bug #36459 Incorrect adding PHPSESSID to links, which contains \r\n</title>
|
<title>Bug #36459 Incorrect adding PHPSESSID to links, which contains \r\n</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p>See source html code</p>
|
<p>See source html code</p>
|
||||||
<a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2&sid=%s"
|
<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 />
|
style="font: normal 11pt Times New Roman">incorrect link</a><br />
|
||||||
<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>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue