HCoop
/
hcoop
/
zz_old
/
portal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a5520ba
)
Allow commas in ticket titles
author
adamch
<adamch>
Thu, 17 May 2007 22:35:58 +0000
(22:35 +0000)
committer
adamch
<adamch>
Thu, 17 May 2007 22:35:58 +0000
(22:35 +0000)
group.sml
patch
|
blob
|
blame
|
history
support.sml
patch
|
blob
|
blame
|
history
diff --git
a/group.sml
b/group.sml
index
fc72152
..
6df85de
100644
(file)
--- a/
group.sml
+++ b/
group.sml
@@
-132,7
+132,7
@@
fun requireGroupName grp =
fun validGroupName name =
size name <= 10
fun validGroupName name =
size name <= 10
- andalso CharVector.all Char.isAlpha name
+ andalso CharVector.all Char.isAlpha
Num
name
fun groupNameToId name =
case C.oneOrNoRows (getDb ()) ($`SELECT id FROM WebGroup WHERE name = ^(C.stringToSql name)`) of
fun groupNameToId name =
case C.oneOrNoRows (getDb ()) ($`SELECT id FROM WebGroup WHERE name = ^(C.stringToSql name)`) of
diff --git
a/support.sml
b/support.sml
index
7ea7809
..
43bb9fb
100644
(file)
--- a/
support.sml
+++ b/
support.sml
@@
-240,7
+240,7
@@
fun unsubscribe {usr, cat} =
ignore (C.dml (getDb ()) ($`DELETE FROM SupSubscription
WHERE usr = ^(C.intToSql usr) AND cat = ^(C.intToSql cat)`))
ignore (C.dml (getDb ()) ($`DELETE FROM SupSubscription
WHERE usr = ^(C.intToSql usr) AND cat = ^(C.intToSql cat)`))
-val okChars = [#" ", #"-", #".", #"!", #"?", #":", #";", #"'", #"\"", #"/", #"(", #")", #"{", #"}", #"[", #"]"]
+val okChars = [#" ", #"-", #".", #"!", #"?", #":", #"
,", #"
;", #"'", #"\"", #"/", #"(", #")", #"{", #"}", #"[", #"]"]
fun validTitle s = CharVector.exists (fn ch => not (Char.isSpace ch)) s
andalso CharVector.all (fn ch => Char.isAlphaNum ch orelse List.exists (fn ch' => ch = ch') okChars) s
fun validTitle s = CharVector.exists (fn ch => not (Char.isSpace ch)) s
andalso CharVector.all (fn ch => Char.isAlphaNum ch orelse List.exists (fn ch' => ch = ch') okChars) s