mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-07 04:03:49 +00:00
Update file_read.php
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
$path_prefix = substr($path_array['dirname'], 0, strlen($edit_directory));
|
||||
|
||||
//validate the path
|
||||
if ($path_prefix == $edit_directory) {
|
||||
if (realpath($path_prefix) == realpath($edit_directory)) {
|
||||
|
||||
//get the contents of the file
|
||||
$handle = fopen($file_name, "r");
|
||||
|
||||
Reference in New Issue
Block a user