Fix for [ 545779 ] Configure Script Problem with Quotes.
authorgraf25 <graf25@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 19 Apr 2002 04:18:46 +0000 (04:18 +0000)
committergraf25 <graf25@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 19 Apr 2002 04:18:46 +0000 (04:18 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2752 7612ce4b-ef26-0410-bec9-ea0150e637f0

config/conf.pl

index 8d6d290a846c63963c25a7f1e73e20b6720123f0..a841520057df74952a8202231b84163187595e39 100755 (executable)
@@ -644,6 +644,7 @@ sub command1 {
         $new_org_name = $org_name;
     } else {
         $new_org_name =~ s/[\r|\n]//g;
+       $new_org_name =~ s/\"/&quot;/g;
     }
     return $new_org_name;
 }
@@ -702,6 +703,7 @@ sub command3 {
         $new_org_title = $org_title;
     } else {
         $new_org_title =~ s/[\r|\n]//g;
+       $new_org_title =~ s/\"/\'/g;
     }
     return $new_org_title;
 }
@@ -985,7 +987,7 @@ sub command71 {
             $line =~ s/  /\&nbsp;\&nbsp;/g;
             $line =~ s/\t/\&nbsp;\&nbsp;\&nbsp;\&nbsp;/g;
             $line =~ s/$/ /;
-            $line =~ s/\'/\\\'/g;
+            $line =~ s/\"/&quot;/g;
 
             $new_motd = $new_motd . $line;
         }
@@ -2207,7 +2209,7 @@ sub save_data {
         print CF "\n";
        
        # string
-        print CF "\$org_name      = '$org_name';\n";
+        print CF "\$org_name      = \"$org_name\";\n";
         # string
        print CF "\$org_logo      = '$org_logo';\n";
         $org_logo_width |= 0;