From 437e0dbb1551dbce774a1c5036e17a8e30c8e699 Mon Sep 17 00:00:00 2001 From: Torgny Nyblom Date: Tue, 13 Apr 2010 19:28:40 +0200 Subject: Fix logical error in last commit. There was no slash added between prefix and path under certain conditions. --- src/ruleparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ruleparser.cpp') diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp index 6e78efe..905115c 100644 --- a/src/ruleparser.cpp +++ b/src/ruleparser.cpp @@ -103,8 +103,8 @@ void Rules::load() match.prefix = matchPrefixLine.cap(1); if( match.prefix.startsWith('/')) match.prefix = match.prefix.mid(1); - if( match.prefix.endsWith('/')) - match.prefix.chop(1); + if( !match.prefix.endsWith('/')) + match.prefix.append('/'); continue; } else if (matchActionLine.exactMatch(line)) { QString action = matchActionLine.cap(1); -- cgit v1.2.1