Using getData function now

This commit is contained in:
Matt Pass
2016-08-25 14:44:18 +01:00
parent 893894f97b
commit 3d8644ae4c
9 changed files with 11 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ include("settings.php");
$file = str_replace("|","/",xssClean($_GET['file'],'html'));
// Get contents
$loadedFile = toUTF8noBOM(file_get_contents("../backups/".$file,false,$context),true);
$loadedFile = toUTF8noBOM(getData("../backups/".$file),true);
$encoding=ini_get("default_charset");
if($encoding=="")
$encoding="UTF-8";