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

Change subject: Per 5a4a33a, remove support for magic quotes gpc
......................................................................


Per 5a4a33a, remove support for magic quotes gpc

Change-Id: I6110b843e6c6ef3431206d25b8fd72ed4f113ee8
---
M thumb.php
1 file changed, 1 insertion(+), 14 deletions(-)

Approvals:
  Aaron Schulz: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/thumb.php b/thumb.php
index d8ed246..3d8612d 100644
--- a/thumb.php
+++ b/thumb.php
@@ -32,7 +32,7 @@
        wfThumbHandle404();
 } else {
        // Called directly, use $_GET params
-       wfThumbHandleRequest();
+       wfStreamThumb( $_GET );
 }
 
 wfLogProfilingData();
@@ -42,19 +42,6 @@
 $factory->shutdown();
 
 //--------------------------------------------------------------------------
-
-/**
- * Handle a thumbnail request via query parameters
- *
- * @return void
- */
-function wfThumbHandleRequest() {
-       $params = get_magic_quotes_gpc()
-               ? array_map( 'stripslashes', $_GET )
-               : $_GET;
-
-       wfStreamThumb( $params ); // stream the thumbnail
-}
 
 /**
  * Handle a thumbnail request via thumbnail file URL

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I6110b843e6c6ef3431206d25b8fd72ed4f113ee8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to