GWicke has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/73374


Change subject: Bug 51100: Use wiki-specific protocol regexp in sanitizer
......................................................................

Bug 51100: Use wiki-specific protocol regexp in sanitizer

Change-Id: I89efc18ac40c619656c876de0acd01833a57c206
---
M js/lib/ext.core.Sanitizer.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid 
refs/changes/74/73374/1

diff --git a/js/lib/ext.core.Sanitizer.js b/js/lib/ext.core.Sanitizer.js
index 02e7d1e..7c2a8ec 100644
--- a/js/lib/ext.core.Sanitizer.js
+++ b/js/lib/ext.core.Sanitizer.js
@@ -615,7 +615,7 @@
                proto = bits[1];
                host = bits[2];
                path = bits[3];
-               if ( ! proto.match(this.constants.validProtocolsRE)) {
+               if ( ! proto.match(this.manager.env.conf.wiki.protocolRegex)) {
                        // invalid proto, disallow URL
                        return null;
                }

-- 
To view, visit https://gerrit.wikimedia.org/r/73374
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I89efc18ac40c619656c876de0acd01833a57c206
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to