Skip to content

Commit c5a408d

Browse files
author
Richard Jones
committed
handle capitalisation of class names in text hyperlinking [SF#1101043]
1 parent 2ad0942 commit c5a408d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGES.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

4+
2004-??-?? 0.7.??
5+
Fixed:
6+
- handle capitalisation of class names in text hyperlinking (sf bug
7+
1101043)
8+
49

5-
2004-10-06 0.7.11
10+
2005-01-06 0.7.11
611
Fixed:
712
- index args URL generation broken in .10 (sf bug 1096027)
813
- handle NotModified for non-static files (sf patch 1095790)

roundup/cgi/templating.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,11 +1073,11 @@ def _hyper_repl(self, match):
10731073
return '<a href="mailto:%s">%s</a>'%(s, s)
10741074
else:
10751075
s = match.group('item')
1076-
s1 = match.group('class')
1076+
s1 = match.group('class').lower()
10771077
s2 = match.group('id')
10781078
try:
10791079
# make sure s1 is a valid tracker classname
1080-
cl = self._db.getclass(s1.lower())
1080+
cl = self._db.getclass(s1)
10811081
if not cl.hasnode(s2):
10821082
raise KeyError, 'oops'
10831083
return '<a href="%s%s">%s</a>'%(s1, s2, s)

0 commit comments

Comments
 (0)