From: Aryeh Gregor
Date: Fri, 17 Nov 2006 13:27:56 +0000 (+0000)
Subject: Restore previous parser test with comment in response to brion on Wikitech-l. And...
X-Git-Tag: 1.31.0-rc.0~55158
X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=4620cb1ae9de27fad3c99db9fcee0bca6629018d;p=lhc%2Fweb%2Fwiklou.git
Restore previous parser test with comment in response to brion on Wikitech-l. And note to self: URLENCODING URLS IS VERY VERY BAD. Even when you're tired.
---
diff --git a/includes/Skin.php b/includes/Skin.php
index 8d528678ac..da0f507ccc 100644
--- a/includes/Skin.php
+++ b/includes/Skin.php
@@ -327,9 +327,9 @@ class Skin extends Linker {
global $wgUseSiteJs;
if ($wgUseSiteJs) {
if ($wgUser->isLoggedIn()) {
- $r .= "\n";
+ $r .= "\n";
} else {
- $r .= "\n";
+ $r .= "\n";
}
}
if( $wgAllowUserJs && $wgUser->isLoggedIn() ) {
diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt
index 1579c2257f..26a12e15fa 100644
--- a/maintenance/parserTests.txt
+++ b/maintenance/parserTests.txt
@@ -5995,6 +5995,16 @@ RAW magic word
!! end
+# This isn't needed for XHTML conformance, but would be handy as a fallback security measure
+!! test
+TODO: Always escape literal '>' in output, not just after '<'
+!! input
+><>
+!! result
+><>
+
+!! end
+
!! test
Template caching
!! input