Changeset 46002 for branches/5.1/tests/phpunit/tests/kses.php
- Timestamp:
- 09/04/2019 06:00:59 PM (5 years ago)
- Location:
- branches/5.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.1
-
branches/5.1/tests/phpunit/tests/kses.php
r44156 r46002 145 145 'feed:javascript:alert(1)', 146 146 'feed:javascript:feed:javascript:feed:javascript:alert(1)', 147 'javascript:alert(1)', 148 'javascript:x=1;alert(1)', 147 149 ); 148 150 foreach ( $bad as $k => $x ) { … … 165 167 $this->assertEquals( 'feed:alert(1)', $result ); 166 168 break; 169 case 26: 170 $this->assertEquals( 'javascript&#58alert(1)', $result ); 171 break; 172 case 27: 173 $this->assertEquals( 'javascript&#x3ax=1;alert(1)', $result ); 174 break; 167 175 default: 168 $this->fail( "wp_kses_bad_protocol failed on $ x. Result: $result" );176 $this->fail( "wp_kses_bad_protocol failed on $k, $x. Result: $result" ); 169 177 } 170 178 }
Note: See TracChangeset
for help on using the changeset viewer.