Sfoglia il codice sorgente

Update file_options.php

FusionPBX 2 anni fa
parent
commit
effbb717b4
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      file_options.php

+ 2 - 2
file_options.php

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