From: Chad Horohoe Date: Mon, 22 Sep 2014 22:01:11 +0000 (-0700) Subject: Per 5a4a33a, remove support for magic quotes gpc X-Git-Tag: 1.31.0-rc.0~13841^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=74c8bea769fa9a1a23db91e143f7d83812de654f;p=lhc%2Fweb%2Fwiklou.git Per 5a4a33a, remove support for magic quotes gpc Change-Id: I6110b843e6c6ef3431206d25b8fd72ed4f113ee8 --- 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 *