Ver Fonte

Update file_options.php

FusionPBX há 2 anos atrás
pai
commit
effbb717b4
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      file_options.php

+ 2 - 2
file_options.php

@@ -50,9 +50,9 @@
 	require_once "header.php";
 
 //set the variables
-	$file = $_GET["file"];
+	$file = (empty($_GET["file"])) ? '' : $_GET["file"];
 	$file = str_replace ("\\", "/", $file);
-	$folder = $_GET["folder"];
+	$folder = (empty($_GET["folder"])) ? '' : $_GET["folder"];
 	$folder = str_replace ($file, "", $folder);
 	$urlpath = str_replace ($_SERVER["DOCUMENT_ROOT"], "", $folder);