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

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


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

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	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.10.4.1
diff -u -w -d -r1.10 -r1.10.4.1
--- svc_domain.cgi	22 Feb 2010 09:14:04 -0000	1.10
+++ svc_domain.cgi	21 Feb 2011 06:03:10 -0000	1.10.4.1
@@ -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