xref: /PHP-5.6/ext/session/tests/021.phpt (revision 25e8fcc8)
1--TEST--
2rewriter handles form and fieldset tags correctly
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--INI--
6session.use_cookies=0
7session.use_only_cookies=0
8session.use_strict_mode=0
9session.cache_limiter=
10session.use_trans_sid=1
11url_rewriter.tags="a=href,area=href,frame=src,input=src,form=,fieldset="
12session.name=PHPSESSID
13session.serialize_handler=php
14session.save_handler=files
15--FILE--
16<?php
17
18error_reporting(E_ALL);
19
20session_id("abtest");
21session_start();
22?>
23<form>
24<fieldset>
25<?php
26
27ob_flush();
28
29ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form=");
30
31?>
32<form>
33<fieldset>
34<?php
35
36ob_flush();
37
38ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form=fakeentry");
39
40?>
41<form>
42<fieldset>
43<?php
44
45ob_flush();
46
47ini_set("url_rewriter.tags", "a=href,fieldset=,area=href,frame=src,input=src");
48
49?>
50<form>
51<fieldset>
52<?php
53
54session_destroy();
55?>
56--EXPECT--
57<form><input type="hidden" name="PHPSESSID" value="abtest" />
58<fieldset><input type="hidden" name="PHPSESSID" value="abtest" />
59<form><input type="hidden" name="PHPSESSID" value="abtest" />
60<fieldset>
61<form><input type="hidden" name="PHPSESSID" value="abtest" />
62<fieldset>
63<form>
64<fieldset><input type="hidden" name="PHPSESSID" value="abtest" />
65