r26078 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26077‎ | r26078 | r26079 >
Date:18:30, 24 September 2007
Author:brion
Status:old
Tags:
Comment:
Clean up after r26070:
* Fix parser test cases whose results are altered by the extra escaping
Modified paths:
  • /trunk/phase3/maintenance/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.txt
@@ -3912,7 +3912,7 @@
39133913 !! input
39143914 <div title="'''foobar'''"></div>
39153915 !! result
3916 -<div title="&#39;&#39;'foobar&#39;&#39;'"></div>
 3916+<div title="&#39;&#39;&#39;foobar&#39;&#39;&#39;"></div>
39173917
39183918 !! end
39193919
@@ -4014,7 +4014,7 @@
40154015 !! input
40164016 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
40174017 !! result
4018 -<div style="background-image:u rl(javascript:alert('boo'))">evil</div>
 4018+<div style="background-image:u rl(javascript:alert(&#39;boo&#39;))">evil</div>
40194019
40204020 !! end
40214021
@@ -4023,7 +4023,7 @@
40244024 !! input
40254025 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
40264026 !! result
4027 -<div style="background-image:expres sion(alert('boo4'))">evil4</div>
 4027+<div style="background-image:expres sion(alert(&#39;boo4&#39;))">evil4</div>
40284028
40294029 !! end
40304030
@@ -4724,7 +4724,7 @@
47254725 <table>
47264726
47274727 <u class="&#124;">} &gt;
4728 -<br style="onmouseover='alert(document.cookie);'" />
 4728+<br style="onmouseover=&#39;alert(document.cookie);&#39;" />
47294729
47304730 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
47314731 <tr>

Follow-up revisions

RevisionCommit summaryAuthorDate
r26135Merged revisions 26012-26133 via svnmerge from...david21:15, 25 September 2007

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r26070Actually, Sanitizer::encodeAttribute() was broken, so my last fix didn't actu...simetrical12:54, 24 September 2007

Status & tagging log