Commit c1807182 authored by Rob Myers's avatar Rob Myers

Escape apostrophes in site names passed to nixtape/install.php. Otherwise they...

Escape apostrophes in site names passed to nixtape/install.php. Otherwise they result in a broken config.ini
parent 4da3e4fc
......@@ -52,7 +52,7 @@ if (isset($_POST['install'])) {
$install_path = dirname(__FILE__) . '/';
$default_theme = $_POST['default_theme'];
$site_name = $_POST['site_name'];
$site_name = addslashes($_POST['site_name']);
$base_url = $_POST['base_url'];
if ($base_url[strlen($base_url) - 1] === '/') {
......
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