Skip to content

Commit

Permalink
try to fix the install form
Browse files Browse the repository at this point in the history
see #355
  • Loading branch information
vincent-peugnet committed Nov 6, 2023
1 parent 3e916f1 commit 5dfdb0e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions app/class/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function wakeup()
echo 'Cant write config file : ' . $e->getMessage();
}
header('Location: ./');
exit;
} elseif (
isset($_POST['userinit'])
&& !empty($_POST['userinit']['id'])
Expand Down
3 changes: 0 additions & 3 deletions app/class/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ public static function tojson()
*/
public static function checkbasepath(): bool
{
if (str_starts_with(self::$basepath, '/') || str_ends_with(self::$basepath, '/')) {
return false;
}
$path = $_SERVER['DOCUMENT_ROOT'] . '/' . self::$basepath . '/' . Model::CONFIG_FILE;
return (file_exists($path));
}
Expand Down

0 comments on commit 5dfdb0e

Please sign in to comment.