summaryrefslogtreecommitdiff
path: root/roundcubemail/installer
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-05-05 06:48:39 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-05-05 06:48:39 +0000
commit9abcc7244a50f0a500eadb51f4538df313ceaf64 (patch)
tree2687e88fca2590951723042af6b576f16117e139 /roundcubemail/installer
parentdeeec134654e46529119480f16b710a62f11255d (diff)
Installer: encode special characters in DB username/password (#1485042)
git-svn-id: https://svn.roundcube.net/trunk@1354 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/installer')
-rw-r--r--roundcubemail/installer/rcube_install.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/roundcubemail/installer/rcube_install.php b/roundcubemail/installer/rcube_install.php
index c4704a3a8..024046755 100644
--- a/roundcubemail/installer/rcube_install.php
+++ b/roundcubemail/installer/rcube_install.php
@@ -137,7 +137,9 @@ class rcube_install
if ($_POST['_dbtype'] == 'sqlite')
$value = sprintf('%s://%s?mode=0646', $_POST['_dbtype'], $_POST['_dbname']{0} == '/' ? '/' . $_POST['_dbname'] : $_POST['_dbname']);
else
- $value = sprintf('%s://%s:%s@%s/%s', $_POST['_dbtype'], $_POST['_dbuser'], $_POST['_dbpass'], $_POST['_dbhost'], $_POST['_dbname']);
+ $value = sprintf('%s://%s:%s@%s/%s', $_POST['_dbtype'],
+ rawurlencode($_POST['_dbuser']), rawurlencode($_POST['_dbpass']),
+ $_POST['_dbhost'], $_POST['_dbname']);
}
else if ($prop == 'smtp_auth_type' && $value == '0') {
$value = '';