]> sipb.mit.edu Git - ikiwiki.git/commitdiff
improve quoting of --params
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 13 Mar 2006 00:57:37 +0000 (00:57 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 13 Mar 2006 00:57:37 +0000 (00:57 +0000)
ikiwiki

diff --git a/ikiwiki b/ikiwiki
index fb721907e0edb1924f1ce297722781d2b9704ff2..8e22ebfac25e02af4a70a289519f42d4120a195a 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -642,7 +642,7 @@ sub gen_wrapper ($$) { #{{{
        push @params, "--cgiurl=$cgiurl" if $cgiurl;
        push @params, "--historyurl=$historyurl" if $historyurl;
        push @params, "--anonok" if $anonok;
        push @params, "--cgiurl=$cgiurl" if $cgiurl;
        push @params, "--historyurl=$historyurl" if $historyurl;
        push @params, "--anonok" if $anonok;
-       my $params=join(" ", @params);
+       my $params=join(" ", map { "\'$_\'" } @params);
        my $call='';
        foreach my $p ($this, $this, @params) {
                $call.=qq{"$p", };
        my $call='';
        foreach my $p ($this, $this, @params) {
                $call.=qq{"$p", };