git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b7c0c1
)
browser: allow dashes in usage identifier
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 16 Dec 2010 00:10:09 +0000
(
01:10
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 17 Dec 2010 20:24:33 +0000
(21:24 +0100)
browser.plp
patch
|
blob
|
history
diff --git
a/browser.plp
b/browser.plp
index 2776a5b53be0ae9dcd0d92d4d39d5d8072152ca7..53be344b159b26760a558b74d33869473e838fa6 100644
(file)
--- a/
browser.plp
+++ b/
browser.plp
@@
-79,7
+79,7
@@
given ($get{usage} // 'wm') {
when (!$_) {
# none
}
- when (!/^
\w
+$/) {
+ when (!/^
[a-z][\w-]
+$/) {
printf "<p>Invalid browser usage data request: <em>%s</em>",
'identifier must be alphanumeric name or <q>0</q>';
}