File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / session / tests / bug36459.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:01 2012 UTC (12 years, 5 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

    1: --TEST--
    2: Bug #31454 (Incorrect adding PHPSESSID to links, which contains \r\n)
    3: --SKIPIF--
    4: <?php include('skipif.inc'); ?>
    5: --INI--
    6: session.use_trans_sid=1
    7: session.use_cookies=0
    8: session.use_only_cookies=0
    9: session.name=sid
   10: --FILE--
   11: <?php
   12: error_reporting(E_ALL);
   13: 
   14: session_start();
   15: 
   16: # Do not remove \r from this tests, they are essential!
   17: ?>
   18: <html>
   19:   <head>
   20:     <title>Bug #36459 Incorrect adding PHPSESSID to links, which contains \r\n</title>
   21:   </head>
   22:   <body>
   23:     <p>See source html code</p>
   24:     <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2"
   25:        style="font: normal 11pt Times New Roman">incorrect link</a><br />
   26:     <br />
   27:     <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2" style="font: normal 11pt Times New Roman">correct link</a>
   28:   </body>
   29: </html>
   30: --EXPECTF--
   31: <html>
   32:   <head>
   33:     <title>Bug #36459 Incorrect adding PHPSESSID to links, which contains \r\n</title>
   34:   </head>
   35:   <body>
   36:     <p>See source html code</p>
   37:     <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2&sid=%s"
   38:        style="font: normal 11pt Times New Roman">incorrect link</a><br />
   39:     <br />
   40:     <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>
   41:   </body>
   42: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>