From 6fc80555d146c2e82457b5bab7b69f3bb4860904 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Thu, 20 Mar 2008 16:08:34 +0100 Subject: [PATCH] Bug fixing : 1746 : password was not escaped. Signed-off-by: Joshua Ferraro --- installer/install.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/install.pl b/installer/install.pl index 637594b263..a866b9ce2d 100755 --- a/installer/install.pl +++ b/installer/install.pl @@ -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); } -- 2.39.5