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
$tmp =~ s/[\'|\"]\);\s*$//;
$charset = $tmp;
} elsif ( $tmp =~ /^\s*[\'|\"]port[\'|\"]/i ) {
$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 ) {
$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;
$maxrows = $tmp;
} elsif ( $tmp =~ /^\s*[\'|\"]name[\'|\"]/i ) {
$tmp =~ s/^\s*[\'|\"]name[\'|\"]\s*=>\s*[\'|\"]//i;