Bug fixing : 1746 : password was not escaped.
authorHenri-Damien LAURENT <henridamien@koha-fr.org>
Thu, 20 Mar 2008 15:08:34 +0000 (16:08 +0100)
committerJoshua Ferraro <jmf@liblime.com>
Sat, 22 Mar 2008 02:45:12 +0000 (21:45 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
installer/install.pl

index 637594b..a866b9c 100755 (executable)
@@ -324,7 +324,7 @@ elsif ( $step && $step == 3 ) {
                        . ( $info{hostname} ? " -h $info{hostname} " : "" )
                        . ( $info{port}     ? " -P $info{port} "     : "" )
                        . ( $info{user}     ? " -u $info{user} "     : "" )
-                       . ( $info{password} ? " -p$info{password}"   : "" )
+                       . ( $info{password} ? " -p'$info{password}'"   : "" )
                        . " $info{dbname} ";
                $error = qx($strcmd < $file 2>&1 1>/dev/null);                  # We want to send stdout to null and return only stderr... -fbcit
            }
@@ -605,7 +605,7 @@ elsif ( $step && $step == 3 ) {
                . ( $info{hostname} ? " -h $info{hostname} " : "" )
                . ( $info{port}     ? " -P $info{port} "     : "" )
                . ( $info{user}     ? " -u $info{user} "     : "" )
-               . ( $info{password} ? " -p$info{password}"   : "" )
+               . ( $info{password} ? " -p'$info{password}'"   : "" )
                . " $info{dbname} ";
            $error = qx($strcmd <$datadir/kohastructure.sql 2>&1 1>/dev/null);
         }