Matěj Suchánek has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/333388 )

Change subject: Escape url in Special:Log
......................................................................

Escape url in Special:Log

When "$1" or similar are in the url, they are replaced with the message
parameters.

See 
https://www.wikidata.org/w/index.php?title=Special:Log&type=spamblacklist&page=Property:P2536.

Change-Id: I5539b1e53f15446477af088a6f697f6a684552a4
---
M SpamBlacklist_body.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SpamBlacklist 
refs/changes/88/333388/2

diff --git a/SpamBlacklist_body.php b/SpamBlacklist_body.php
index e14fa44..24243da 100644
--- a/SpamBlacklist_body.php
+++ b/SpamBlacklist_body.php
@@ -324,7 +324,7 @@
                        $logEntry->setPerformer( $wgUser );
                        $logEntry->setTarget( $title );
                        $logEntry->setParameters( array(
-                               '4::url' => $url,
+                               '4:raw:url' => htmlspecialchars( $url ),
                        ) );
                        $logid = $logEntry->insert();
                        $logEntry->publish( $logid, "rc" );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5539b1e53f15446477af088a6f697f6a684552a4
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/SpamBlacklist
Gerrit-Branch: master
Gerrit-Owner: Matěj Suchánek <matejsuchane...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to