Browse Source

Update file_save.php

FusionPBX 6 năm trước cách đây
mục cha
commit
e0d3a741fb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      file_save.php

+ 1 - 1
file_save.php

@@ -116,7 +116,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)) {
 		if ($file_path != '') {
 		if ($file_path != '') {
 			try {
 			try {
 				//save file content
 				//save file content