X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fsvc_domain.cgi;h=a5c617d8390be408c45d8adc4b203d96fbbd3941;hb=b71b1576c68bc40ad26592b354feace37a029f0e;hp=381339bc8ee9905731229671f3ef80087ed0dbc5;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/httemplate/edit/process/svc_domain.cgi b/httemplate/edit/process/svc_domain.cgi index 381339bc8..a5c617d83 100755 --- a/httemplate/edit/process/svc_domain.cgi +++ b/httemplate/edit/process/svc_domain.cgi @@ -46,6 +46,11 @@ my $new = new FS::svc_domain ( { } ( 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();