Permalink
Browse files

Create a new variable in the php-proxy and set to the default proxyPa…

…ram value
  • Loading branch information...
1 parent 59f3b63 commit 679abb96b7b74e8f63e84791c5128989faf43aab @mgallego mgallego committed Jan 19, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 proxies/caman_proxy.php
@@ -3,12 +3,14 @@
// end in an image file extension. E.g. through another proxy of kinds.
define('ALLOW_NO_EXT', false);
-if (!$_GET['url']) {
+$proxyParam = 'camanProxyUrl';
+
+if (!$_GET[$proxyParam]) {
exit;
}
// Grab the URL
-$url = trim(urldecode($_GET['url']));
+$url = trim(urldecode($_GET[$proxyParam]));
$urlinfo = parse_url($url, PHP_URL_PATH);
$ext = array_reverse(explode(".", $urlinfo));

0 comments on commit 679abb9

Please sign in to comment.