From b84cffd62e65464f32fe4bb29173940050a610ad Mon Sep 17 00:00:00 2001 From: Liwiusz Ociepa Date: Mon, 5 May 2008 15:00:50 +0000 Subject: [PATCH] Strip extra whitespaces from query in apache config object. git-svn-id: http://redmine.rubyforge.org/svn/branches/swistak@1418 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- extra/svn/Redmine.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extra/svn/Redmine.pm b/extra/svn/Redmine.pm index fa5123285..618c39db5 100644 --- a/extra/svn/Redmine.pm +++ b/extra/svn/Redmine.pm @@ -149,7 +149,13 @@ sub RedmineDbWhereClause { AND users.status=1 AND login=? AND identifier=? "; - $self->{RedmineQuery} = $query.($arg ? $arg : "").";"; + $self->{RedmineQuery} = trim($query.($arg ? $arg : "").";"); +} + +sub trim { + my $string = shift; + $string =~ s/\s{2,}/ /g; + return $string; } sub set_val { -- 2.39.5