xref: /PHP-5.3/ext/session/tests/021.phpt (revision 5ad03cd4)
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.cache_limiter=
9session.use_trans_sid=1
10url_rewriter.tags="a=href,area=href,frame=src,input=src,form=,fieldset="
11session.name=PHPSESSID
12session.serialize_handler=php
13session.save_handler=files
14--FILE--
15<?php
16
17error_reporting(E_ALL);
18
19session_id("abtest");
20session_start();
21?>
22<form>
23<fieldset>
24<?php
25
26ob_flush();
27
28ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form=");
29
30?>
31<form>
32<fieldset>
33<?php
34
35ob_flush();
36
37ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form=fakeentry");
38
39?>
40<form>
41<fieldset>
42<?php
43
44ob_flush();
45
46ini_set("url_rewriter.tags", "a=href,fieldset=,area=href,frame=src,input=src");
47
48?>
49<form>
50<fieldset>
51<?php
52
53session_destroy();
54?>
55--EXPECT--
56<form><input type="hidden" name="PHPSESSID" value="abtest" />
57<fieldset><input type="hidden" name="PHPSESSID" value="abtest" />
58<form><input type="hidden" name="PHPSESSID" value="abtest" />
59<fieldset>
60<form><input type="hidden" name="PHPSESSID" value="abtest" />
61<fieldset>
62<form>
63<fieldset><input type="hidden" name="PHPSESSID" value="abtest" />
64