projects
/
mirror
/
userdir-ldap-cgi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6e3820
)
Different way of splitting
author
joey
<>
Thu, 18 Nov 2004 13:17:01 +0000
(13:17 +0000)
committer
joey
<>
Thu, 18 Nov 2004 13:17:01 +0000
(13:17 +0000)
Util.pm
patch
|
blob
|
history
diff --git
a/Util.pm
b/Util.pm
index
87ace99
..
76accc9
100644
(file)
--- a/
Util.pm
+++ b/
Util.pm
@@
-325,7
+325,8
@@
sub ReadConfigFile {
if ((!/^\s*#/) && ($_ ne "")) {
# Chop off any trailing comments
s/#.*//;
- ($attr, $setting) = split(/=/, $_, 2);
+ /([^=]+)=(.*)/;
+ ($attr, $setting) = ($1, $2);
$setting =~ s/"//g; #"
$setting =~ s/;$//;
$attr =~ s/^\s+//; $attr =~ s/\s+$//;