From 748c796b5b55517ca0327702a3f83af3e7bfb575 Mon Sep 17 00:00:00 2001 From: kink Date: Sun, 28 Jul 2002 18:01:57 +0000 Subject: [PATCH] maxrows and port can be integers, so don't require them to have quotes. Fix bug [ 575952 ] conf.pl bug when saving/reading ldap git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3148 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- config/conf.pl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/conf.pl b/config/conf.pl index f7095be3..272d64e8 100755 --- a/config/conf.pl +++ b/config/conf.pl @@ -205,14 +205,14 @@ while ( $line = ) { $tmp =~ s/[\'|\"]\);\s*$//; $charset = $tmp; } elsif ( $tmp =~ /^\s*[\'|\"]port[\'|\"]/i ) { - $tmp =~ s/^\s*[\'|\"]port[\'|\"]\s*=>\s*[\'|\"]//i; - $tmp =~ s/[\'|\"],?\s*$//; - $tmp =~ s/[\'|\"]\);\s*$//; + $tmp =~ s/^\s*[\'|\"]port[\'|\"]\s*=>\s*[\'|\"]?//i; + $tmp =~ s/[\'|\"]?,?\s*$//; + $tmp =~ s/[\'|\"]?\);\s*$//; $port = $tmp; } elsif ( $tmp =~ /^\s*[\'|\"]maxrows[\'|\"]/i ) { - $tmp =~ s/^\s*[\'|\"]maxrows[\'|\"]\s*=>\s*[\'|\"]//i; - $tmp =~ s/[\'|\"],?\s*$//; - $tmp =~ s/[\'|\"]\);\s*$//; + $tmp =~ s/^\s*[\'|\"]maxrows[\'|\"]\s*=>\s*[\'|\"]?//i; + $tmp =~ s/[\'|\"]?,?\s*$//; + $tmp =~ s/[\'|\"]?\);\s*$//; $maxrows = $tmp; } elsif ( $tmp =~ /^\s*[\'|\"]name[\'|\"]/i ) { $tmp =~ s/^\s*[\'|\"]name[\'|\"]\s*=>\s*[\'|\"]//i; -- 2.25.1