Don't prefix ../data before contents

This commit is contained in:
mattpass
2020-02-03 11:07:05 +00:00
parent c0b3d08489
commit fe6eed2934
4 changed files with 5 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ if (!$demoMode && isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] && isset
// Now update the config file
if (is_writeable("../data/".$settingsFile)) {
$fh = fopen("../data/".$settingsFile, 'w');
fwrite($fh, "../data/".$settingsContents);
fwrite($fh, $settingsContents);
fclose($fh);
// Clear any FTP session we may have
@@ -153,7 +153,7 @@ if (!$demoMode && isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] && isset
// Now update the config file
if (is_writeable("../data/".$settingsFile)) {
$fh = fopen("../data/".$settingsFile, 'w');
fwrite($fh, "../data/".$settingsContents);
fwrite($fh, $settingsContents);
fclose($fh);
// Finally, reload the iFrame screen for the user
header("Location: github-manager.php?updatedGithubPaths&csrf=".$_SESSION["csrf"]);