##// END OF EJS Templates
fixed issue with escaping < and > in changeset commits
marcink -
r2111:122f15a8 beta
parent child Browse files
Show More
@@ -26,6 +26,7 b' fixes'
26 26 - fixed #390 cache invalidation problems on repos inside group
27 27 - fixed #385 clone by ID url was loosing proxy prefix in URL
28 28 - fixed some unicode problems with waitress
29 - fixed issue with escaping < and > in changeset commits
29 30
30 31 1.3.3 (**2012-03-02**)
31 32 ----------------------
@@ -802,6 +802,12 b' def urlify_text(text_):'
802 802
803 803
804 804 def urlify_changesets(text_, repository):
805 """
806 Extract revision ids from changeset and make link from them
807
808 :param text_:
809 :param repository:
810 """
805 811 import re
806 812 URL_PAT = re.compile(r'([0-9a-fA-F]{12,})')
807 813
@@ -839,10 +845,10 b' def urlify_commit(text_, repository=None'
839 845 """
840 846 import re
841 847 import traceback
842
843 # urlify changesets
844 text_ = urlify_changesets(text_, repository)
845
848
849 def escaper(string):
850 return string.replace('<', '&lt;').replace('>', '&gt;')
851
846 852 def linkify_others(t, l):
847 853 urls = re.compile(r'(\<a.*?\<\/a\>)',)
848 854 links = []
@@ -853,6 +859,11 b' def urlify_commit(text_, repository=None'
853 859 links.append(e)
854 860
855 861 return ''.join(links)
862
863
864 # urlify changesets - extrac revisions and make link out of them
865 text_ = urlify_changesets(escaper(text_), repository)
866
856 867 try:
857 868 conf = config['app_conf']
858 869
General Comments 0
You need to be logged in to leave comments. Login now