bodhi/model.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 3edcf0bf01186c6942201480a4f46452bee67b6d
Author: Luke Macken <lmacken(a)redhat.com>
Date: Tue Aug 10 16:34:34 2010 -0400
Don't inject csrf tokens into the bugzilla linkage
diff --git a/bodhi/model.py b/bodhi/model.py
index 3c43063..d51762a 100644
--- a/bodhi/model.py
+++ b/bodhi/model.py
@@ -1092,11 +1092,11 @@ class Comment(SQLObject):
if token.startswith('http://'):
text = text.replace(token, link(token, token))
elif token.startswith('#') and isint(token[1:]):
- text = text.replace(token,
- link(token, config.get('bz_buglink') + token[1:]))
+ text = text.replace(token, '<a
href="%s">%s</a>' % (
+ config.get('bz_buglink') + token[1:], token))
elif len(token) == 6 and isint(token):
- text = text.replace(token,
- link(token, config.get('bz_buglink') + token))
+ text = text.replace(token, '<a
href="%s">%s</a>' % (
+ config.get('bz_buglink') + token, token))
return XML(text)
def __str__(self):
Show replies by date