summaryrefslogtreecommitdiff
path: root/Utils
diff options
context:
space:
mode:
authorcarlosg <carlosg>2006-10-02 15:51:24 +0000
committercarlosg <carlosg>2006-10-02 15:51:24 +0000
commit416f7fa1c0224f5ff2cada729b6238d23d6f00ec (patch)
treecadb867c0f2d0b4b10388babf213b6dc82e06714 /Utils
parent55bd09e82d41992f690b5174d1ce580714f92b90 (diff)
2006-10-02 Carlos Garnacho <carlosg@gnome.org>
* Utils/Parse.pm (escape): fix slight problem when $value has spaces.
Diffstat (limited to 'Utils')
-rw-r--r--Utils/Parse.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/Utils/Parse.pm b/Utils/Parse.pm
index ecd6931..e683d94 100644
--- a/Utils/Parse.pm
+++ b/Utils/Parse.pm
@@ -563,9 +563,9 @@ sub unescape
sub escape
{
my ($value) = @_;
-
- $value =~ s/([\"\`\$\\])/\\$1/g;
- $value = "\"$value\"" if ($value =~ /[ \t\'&|*?\[\]\{\}\{\}<>]/);
+
+ $value =~ s/([\ \"\`\$\\])/\\$1/g;
+ #$value = "\"$value\"" if ($value =~ /[ \t\'&|*?\[\]\{\}\{\}<>]/);
return $value;
}
@@ -832,7 +832,7 @@ sub get_from_ini
&Utils::Report::leave ();
$res = undef;
$escaped_section = &escape ($section);
-
+
while (($line = &ini_line_read ($fd)) != -1)
{
$_ = $$line;