[rt-commit] [svn] r649 - rt/branches/rt-3.1/lib/RT/Action

leira at fsck.com leira at fsck.com
Wed Mar 31 14:33:46 EST 2004


Author: leira
Date: Wed Mar 31 14:33:44 2004
New Revision: 649

Modified:
   rt/branches/rt-3.1/lib/RT/Action/CreateTickets.pm
Log:
Strip leading and trailing spaces from tags that aren't Content.


Modified: rt/branches/rt-3.1/lib/RT/Action/CreateTickets.pm
==============================================================================
--- rt/branches/rt-3.1/lib/RT/Action/CreateTickets.pm	(original)
+++ rt/branches/rt-3.1/lib/RT/Action/CreateTickets.pm	Wed Mar 31 14:33:44 2004
@@ -593,6 +593,10 @@
 		    last if ($l =~  /^ENDOFCONTENT\s*$/) ;
 		    push @{$args{'content'}}, $l."\n";
 		}
+	    } else {
+		# if it's not content, strip leading and trailing spaces
+		$args{ $tag } =~ s/^\s+//g;
+		$args{ $tag } =~ s/\s+$//g;
 	    }
 	}
     }



More information about the Rt-commit mailing list