Skip to content

Commit 9deee78

Browse files
author
Richard Jones
committed
don't insert spaces into designators, it just confuses users [SF#898087]
1 parent c2874a1 commit 9deee78

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGES.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,12 @@ Cleanup:
6969
* exceptions.py - all exceptions
7070
* form_parser.py - parsePropsFromForm & extractFormList in a FormParser class
7171

72+
2004-??-?? 0.6.6
73+
Fixed:
74+
- don't insert spaces into designators, it just confuses users (sf bug 898087)
75+
7276

73-
2004-??-?? 0.6.5
77+
2004-02-16 0.6.5
7478
Fixed:
7579
- mailgw handling of subject-line errors
7680
- allow serving of FileClass file content when the class isn't called

roundup/cgi/templating.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,8 +961,10 @@ def _hyper_repl(self, match):
961961
s2 = match.group('id')
962962
try:
963963
# make sure s1 is a valid tracker classname
964-
self._db.getclass(s1)
965-
return '<a href="%s">%s %s</a>'%(s, s1, s2)
964+
cl = self._db.getclass(s1)
965+
if not cl.hasnode(s2):
966+
raise KeyError, 'oops'
967+
return '<a href="%s">%s%s</a>'%(s, s1, s2)
966968
except KeyError:
967969
return '%s%s'%(s1, s2)
968970

0 commit comments

Comments
 (0)