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

Commit a997bfca authored by Luke Slater's avatar Luke Slater

Now handles base url trailing slash on input processing.

parent 5f02c8e3
......@@ -54,6 +54,11 @@ if (isset($_POST['install'])) {
$default_theme = $_POST['default_theme'];
$base_url = $_POST['base_url'];
if($base_url[strlen($base_url)-1] === '/') {
$base_url = substr($base_url, 0, -1);
}
$submissions_server = $_POST['submissions_server'];
//Write out the configuration
......@@ -121,7 +126,7 @@ if (isset($_POST['install'])) {
}
?>
</select><br />
Base URL: <input type="text" name="base_url" value="<?php echo substr(getAbsoluteURL(), 0, -1); ?>" /><br />
Base URL: <input type="text" name="base_url" value="<?php echo getAbsoluteURL(); ?>" /><br />
Submissions Server: <input type="text" name="submissions_server" /> (URL to your gnukebox install)<br />
<br /><br />
<input type="submit" value="Install" name="install" />
......
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