Update file_read.php

This commit is contained in:
FusionPBX 2019-08-21 05:26:29 -06:00 committed by GitHub
parent 6c27436323
commit 93408a2c42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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");