jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Subramanya Sastry: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I89efc18ac40c619656c876de0acd01833a57c206
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to