projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2266fd6
)
strip non-digits from phone numbers instead of throwing a nasty error, on dsl qualifi...
author
ivan
<ivan>
Sun, 6 Mar 2011 17:47:53 +0000
(17:47 +0000)
committer
ivan
<ivan>
Sun, 6 Mar 2011 17:47:53 +0000
(17:47 +0000)
httemplate/edit/process/qual.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/process/qual.cgi
b/httemplate/edit/process/qual.cgi
index
5a4f68b
..
bc8c5a5
100644
(file)
--- a/
httemplate/edit/process/qual.cgi
+++ b/
httemplate/edit/process/qual.cgi
@@
-37,7
+37,9
@@
die "neither prospect nor customer specified or found"
$cgi->param('exportnum') =~ /^(\d+)$/ or die 'illegal exportnum';
my $exportnum = $1;
-$cgi->param('phonenum') =~ /^(\d*)$/ or die 'illegal phonenum';
+my $phonenum = $cgi->param('phonenum');
+$phonenum =~ s/\D//g;
+$phonenum =~ /^(\d*)$/ or die 'illegal phonenum';
my $phonenum = $1;
$cgi->param('locationnum') =~ /^(\-?\d*)$/