]> source.dussan.org Git - redmine.git/commitdiff
Strip extra whitespaces from query in apache config object.
authorLiwiusz Ociepa <liwiusz.ociepa@softwarelab.eu>
Mon, 5 May 2008 15:00:50 +0000 (15:00 +0000)
committerLiwiusz Ociepa <liwiusz.ociepa@softwarelab.eu>
Mon, 5 May 2008 15:00:50 +0000 (15:00 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/branches/swistak@1418 e93f8b46-1217-0410-a6f0-8f06a7374b81

extra/svn/Redmine.pm

index fa51232853dcbe557a1fd9e7d4d3f0983d968311..618c39db5fa0f0a6ad67dde59453f940fdfc3ed5 100644 (file)
@@ -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 {