Per 5a4a33a, remove support for magic quotes gpc
authorChad Horohoe <chadh@wikimedia.org>
Mon, 22 Sep 2014 22:01:11 +0000 (15:01 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Mon, 22 Sep 2014 22:01:56 +0000 (15:01 -0700)
Change-Id: I6110b843e6c6ef3431206d25b8fd72ed4f113ee8

thumb.php

index d8ed246..3d8612d 100644 (file)
--- a/thumb.php
+++ b/thumb.php
@@ -32,7 +32,7 @@ if ( defined( 'THUMB_HANDLER' ) ) {
        wfThumbHandle404();
 } else {
        // Called directly, use $_GET params
-       wfThumbHandleRequest();
+       wfStreamThumb( $_GET );
 }
 
 wfLogProfilingData();
@@ -43,19 +43,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
  *