Show More
@@ -26,6 +26,7 b' fixes' | |||||
26 | - fixed #390 cache invalidation problems on repos inside group |
|
26 | - fixed #390 cache invalidation problems on repos inside group | |
27 | - fixed #385 clone by ID url was loosing proxy prefix in URL |
|
27 | - fixed #385 clone by ID url was loosing proxy prefix in URL | |
28 | - fixed some unicode problems with waitress |
|
28 | - fixed some unicode problems with waitress | |
|
29 | - fixed issue with escaping < and > in changeset commits | |||
29 |
|
30 | |||
30 | 1.3.3 (**2012-03-02**) |
|
31 | 1.3.3 (**2012-03-02**) | |
31 | ---------------------- |
|
32 | ---------------------- |
@@ -802,6 +802,12 b' def urlify_text(text_):' | |||||
802 |
|
802 | |||
803 |
|
803 | |||
804 | def urlify_changesets(text_, repository): |
|
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 | import re |
|
811 | import re | |
806 | URL_PAT = re.compile(r'([0-9a-fA-F]{12,})') |
|
812 | URL_PAT = re.compile(r'([0-9a-fA-F]{12,})') | |
807 |
|
813 | |||
@@ -840,8 +846,8 b' def urlify_commit(text_, repository=None' | |||||
840 | import re |
|
846 | import re | |
841 | import traceback |
|
847 | import traceback | |
842 |
|
848 | |||
843 | # urlify changesets |
|
849 | def escaper(string): | |
844 | text_ = urlify_changesets(text_, repository) |
|
850 | return string.replace('<', '<').replace('>', '>') | |
845 |
|
851 | |||
846 | def linkify_others(t, l): |
|
852 | def linkify_others(t, l): | |
847 | urls = re.compile(r'(\<a.*?\<\/a\>)',) |
|
853 | urls = re.compile(r'(\<a.*?\<\/a\>)',) | |
@@ -853,6 +859,11 b' def urlify_commit(text_, repository=None' | |||||
853 | links.append(e) |
|
859 | links.append(e) | |
854 |
|
860 | |||
855 | return ''.join(links) |
|
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 | try: |
|
867 | try: | |
857 | conf = config['app_conf'] |
|
868 | conf = config['app_conf'] | |
858 |
|
869 |
General Comments 0
You need to be logged in to leave comments.
Login now