Skip to content

Commit

Permalink
Fix tests that break if filter.default isn't set to unsafe_raw
Browse files Browse the repository at this point in the history
  • Loading branch information
rlerdorf committed Mar 2, 2012
1 parent bcb9768 commit bc8e8b3
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions ext/mbstring/tests/htmlent.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ mbstring.http_input=HTML-ENTITIES
mbstring.internal_encoding=UTF-8
mbstring.http_output=HTML-ENTITIES
mbstring.encoding_translation=1
filter.default=unsafe_raw
--FILE--
<?php
// enable output encoding through output handler
Expand Down
1 change: 1 addition & 0 deletions ext/standard/tests/strings/htmlentities13.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ htmlentities() test 13 (default_charset / EUC-JP)
output_handler=
mbstring.internal_encoding=pass
default_charset=EUC-JP
filter.default=unsafe_raw
--FILE--
<?php
print ini_get('default_charset')."\n";
Expand Down
1 change: 1 addition & 0 deletions ext/standard/tests/strings/htmlentities14.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ htmlentities() test 14 (default_charset / Shift_JIS)
output_handler=
mbstring.internal_encoding=pass
default_charset=Shift_JIS
filter.default=unsafe_raw
--FILE--
<?php
print ini_get('default_charset')."\n";
Expand Down
Binary file modified ext/standard/tests/strings/parse_str_basic3.phpt
Binary file not shown.
1 change: 1 addition & 0 deletions tests/basic/022.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Cookies test#1
--INI--
max_input_vars=1000
filter.default=unsafe_raw
--COOKIE--
cookie1=val1 ; cookie2=val2%20; cookie3=val 3.; cookie 4= value 4 %3B; cookie1=bogus; %20cookie1=ignore;+cookie1=ignore;cookie1;cookie 5=%20 value; cookie%206=þæö;cookie+7=;$cookie.8;cookie-9=1;;;- & % $cookie 10=10
--FILE--
Expand Down
1 change: 1 addition & 0 deletions tests/basic/023.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Cookies test#2
--INI--
max_input_vars=1000
filter.default=unsafe_raw
--COOKIE--
c o o k i e=value; c o o k i e= v a l u e ;;c%20o+o k+i%20e=v;name="value","value",UEhQIQ==;UEhQIQ==foo
--FILE--
Expand Down

0 comments on commit bc8e8b3

Please sign in to comment.