Tobias Gritschacher has uploaded a new change for review.

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

Change subject: Always urlencode url parameter
......................................................................

Always urlencode url parameter

Change-Id: I2d1069294775d809576d75b711ca724804ce80b7
---
M specials/SpecialElectronPdf.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ElectronPdfService 
refs/changes/95/313395/1

diff --git a/specials/SpecialElectronPdf.php b/specials/SpecialElectronPdf.php
index ae0cd95..17a7260 100644
--- a/specials/SpecialElectronPdf.php
+++ b/specials/SpecialElectronPdf.php
@@ -75,7 +75,7 @@
                        $electronPdfService["serviceUrl"] . '/' .
                        $electronPdfService["format"] .
                        '?accessKey=' . $electronPdfService["key"] .
-                       '&url=' . $articleUrl;
+                       '&url=' . urlencode( $articleUrl );
 
                return $serviceUrl;
        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d1069294775d809576d75b711ca724804ce80b7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ElectronPdfService
Gerrit-Branch: master
Gerrit-Owner: Tobias Gritschacher <tobias.gritschac...@wikimedia.de>

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

Reply via email to