Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

strip leading and trailing whitepace

  • Loading branch information...
commit 223a93a7ea97f73bbe47b1a8044c80ce12a0c168 1 parent 2fed28e
@djzort authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/Codestriker/Action/SubmitNewTopic.pm
View
7 lib/Codestriker/Action/SubmitNewTopic.pm
@@ -51,6 +51,13 @@ sub process($$$) {
my $feedback = "";
my $topic_text = "";
+ $start_tag =~ s/^\s+//; # strip leading whitespace
+ $start_tag =~ s/\s+$//; # strip trailing whitepsace
+ $end_tag =~ s/^\s+//; # strip leading whitespace
+ $end_tag =~ s/\s+$//; # strip trailing whitepsace
+ $module =~ s/^\s+//; # strip leading whitespace
+ $module =~ s/\s+$//; # strip trailing whitepsace
+
my $url_builder = Codestriker::Http::UrlBuilder->new($query);
# Indicate whether the topic text needs to be retrieved by the repository
Please sign in to comment.
Something went wrong with that request. Please try again.