From: Liwiusz Ociepa Date: Mon, 5 May 2008 15:00:50 +0000 (+0000) Subject: Strip extra whitespaces from query in apache config object. X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b84cffd62e65464f32fe4bb29173940050a610ad;p=redmine.git 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 --- 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 {