Browse Source

Update file_read.php

FusionPBX 6 years ago
parent
commit
995eadd80c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      file_read.php

+ 1 - 1
file_read.php

@@ -103,7 +103,7 @@
 	$path_prefix = substr($path_array['dirname'], 0, strlen($edit_directory));
 	$path_prefix = substr($path_array['dirname'], 0, strlen($edit_directory));
 
 
 //validate the path
 //validate the path
-	if ($path_prefix == $edit_directory) {
+	if (realpath($path_prefix) == realpath($edit_directory)) {
 
 
 		//get the contents of the file
 		//get the contents of the file
 		$handle = fopen($file_name, "r");
 		$handle = fopen($file_name, "r");