We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 2e74840a authored by Reiner Herrmann's avatar Reiner Herrmann

URL encode sqlite paths

committer: Mike Sheldon <mike@mikeasoft.com>
parent 6ef4f531
......@@ -33,8 +33,8 @@ if (isset($_POST['install'])) {
//Get the database connection string
$dbms = $_POST['dbms'];
if($dbms == "sqlite") {
$filename = $_POST['filename'];
$connect_string = "sqlite:///" . $filename;
$filename = urlencode($_POST['filename']);
$connect_string = "sqlite://" . $filename;
} else {
$connect_string = $dbms . "://" . $_POST['username'] . ":" . $_POST['password'] . "@" . $_POST['hostname'] . ":" . $_POST['port'] . "/" . $_POST['dbname'];
}
......
......@@ -33,8 +33,8 @@ if (isset($_POST['install'])) {
//Get the database connection string
$dbms = $_POST['dbms'];
if($dbms == 'sqlite') {
$filename = $_POST['filename'];
$connect_string = 'sqlite:///' . $filename;
$filename = urlencode($_POST['filename']);
$connect_string = 'sqlite://' . $filename;
} else {
$connect_string = $dbms . '://' . $_POST['username'] . ':' . $_POST['password'] . '@' . $_POST['hostname'] . ':' . $_POST['port'] . '/' . $_POST['dbname'];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment