chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.web-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8c65bca
)
upload server: permit stalls which start with lowercase letters
6.7.1
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 8 Jan 2011 15:26:22 +0000
(15:26 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 8 Jan 2011 15:26:22 +0000
(15:26 +0000)
yarrg/Commods.pm
patch
|
blob
|
history
diff --git
a/yarrg/Commods.pm
b/yarrg/Commods.pm
index bce9a8e13b2cb33afd05feb7ada3d2410aa5ea02..f3ae56fcbd0e4827c2168f6ebd3f15cdc070a6b2 100644
(file)
--- a/
yarrg/Commods.pm
+++ b/
yarrg/Commods.pm
@@
-431,8
+431,8
@@
sub check_tsv_line ($$) {
defined $commods{$commod} or
&$bad_data("unknown commodity ".errsan($commod));
defined $commods{$commod} or
&$bad_data("unknown commodity ".errsan($commod));
- $stall =~ m/^\p{Is
Upper}|^[0-9]
/ or
- &$bad_data("stall
not capitalised
".errsan($stall));
+ $stall =~ m/^\p{Is
Alnum}
/ or
+ &$bad_data("stall
does not start with alphanumeric
".errsan($stall));
!exists $check_tsv_done{$commod,$stall} or
&$bad_data("repeated data ".errsan($commod).",".errsan($stall));
$check_tsv_done{$commod,$stall}= 1;
!exists $check_tsv_done{$commod,$stall} or
&$bad_data("repeated data ".errsan($commod).",".errsan($stall));
$check_tsv_done{$commod,$stall}= 1;