[freeside-commits] freeside/httemplate/edit/process svc_domain.cgi, 1.10, 1.11

Erik Levinson levinse at wavetail.420.am
Sun Feb 20 22:03:11 PST 2011


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv11223/httemplate/edit/process

Modified Files:
	svc_domain.cgi 
Log Message:
trim whitespace for domain field in svc_domain prov UI, RT11432

Index: svc_domain.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/svc_domain.cgi,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -w -d -r1.10 -r1.11
--- svc_domain.cgi	22 Feb 2010 09:14:04 -0000	1.10
+++ svc_domain.cgi	21 Feb 2011 06:03:09 -0000	1.11
@@ -46,6 +46,11 @@
   } ( fields('svc_domain'), qw( pkgnum svcpart action ) )
 } );
 
+# trim leading and trailing whitespace to avoid errors caused by pasting into UI
+my $domain = $new->domain;
+$domain =~ s/^\s+|\s+$//g;
+$new->domain($domain);
+
 my $error = '';
 if ($cgi->param('svcnum')) {
   $error  = $new->replace();



More information about the freeside-commits mailing list