Chad has uploaded a new change for review.
https://gerrit.wikimedia.org/r/162146
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/46/162146/1
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: newchange
Gerrit-Change-Id: I6110b843e6c6ef3431206d25b8fd72ed4f113ee8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits