Bug #4266 erase old referrer check and make a new experimental disabled

skala
Juan Carlos Raña 13 years ago
parent 8a2b4a48c1
commit 7d21d7773f
  1. 12
      main/document/save_pixlr.php

@ -45,11 +45,13 @@ $saveDir=$dirBaseDocuments.$_SESSION['paint_dir'];
$contents = file_get_contents($urlcontents); $contents = file_get_contents($urlcontents);
//Verify that the URL is pointing to a file @ pixlr.com domain or an ip @ pixlr.com //Verify that the URL is pointing to a file @ pixlr.com domain or an ip @ pixlr.com
if (strpos($urlcontents, "pixlr.com") == 0 && strpos($urlcontents, "69.164.195.250") == 0 && strpos($urlcontents, "173.255.196.130") == 0 /*
&& strpos($urlcontents, "173.255.196.177") == 0) { $urlcontents1='http://pixlr.com/';
echo "Invalid referrer"; $urlcontents2 = strstr($urlcontents, '_temp');
exit; $urlcontents_to_save=$urlcontents1.$urlcontents2;
} $contents = file_get_contents($urlcontents_to_save);//replace line 45.
*/
//Verify that the file is an image //Verify that the file is an image
$headers = get_headers($urlcontents, 1); $headers = get_headers($urlcontents, 1);
$content_type = explode("/", $headers['Content-Type']); $content_type = explode("/", $headers['Content-Type']);

Loading…
Cancel
Save