From 74c8bea769fa9a1a23db91e143f7d83812de654f Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 22 Sep 2014 15:01:11 -0700 Subject: [PATCH] Per 5a4a33a, remove support for magic quotes gpc Change-Id: I6110b843e6c6ef3431206d25b8fd72ed4f113ee8 --- thumb.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/thumb.php b/thumb.php index d8ed246f96..3d8612d972 100644 --- 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 * -- 2.20.1