mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-15 02:24:07 +00:00
Update parser test for core change
I42e747f1 stopped changing a regular space before percent-escapes (like "%25") to a non-breaking space in certain cases, causing tests to fail where they were expecting that non-breaking space. Update the test to match this new behavior. Bug: T199647 Change-Id: If5d90e5701f240b1bc71a3c3458e952e0e2c7df4
This commit is contained in:
parent
e19850baf0
commit
41466e274b
|
@ -75,7 +75,7 @@ SRC=javascript:al
|
|||
%253cscript%253ealert(document.cookie)%253c/script%253e
|
||||
</source>
|
||||
!! result
|
||||
<p><code class="mw-highlight" dir="ltr"><script>alert("pwnd")</script> <IMG SRC=`javascript:alert("RSnake says, 'XSS'")`> <IMG SRC=&#106;&#97;&#118;&#97;&#115;&#99;&#114;&#105;&#112;&#116;&#58;&#97;&#108;&#101;&#114;&#116;&#40; &#39;&#88;&#83;&#83;&#39;&#41; \";alert('XSS');// </script><script>alert('XSS');</script> %253cscript%253ealert(document.cookie)%253c/script%253e</code>
|
||||
<p><code class="mw-highlight" dir="ltr"><script>alert("pwnd")</script> <IMG SRC=`javascript:alert("RSnake says, 'XSS'")`> <IMG SRC=&#106;&#97;&#118;&#97;&#115;&#99;&#114;&#105;&#112;&#116;&#58;&#97;&#108;&#101;&#114;&#116;&#40; &#39;&#88;&#83;&#83;&#39;&#41; \";alert('XSS');// </script><script>alert('XSS');</script> %253cscript%253ealert(document.cookie)%253c/script%253e</code>
|
||||
</p>
|
||||
!! end
|
||||
|
||||
|
|
Loading…
Reference in a new issue