Show More
@@ -26,6 +26,7 b' from mercurial import archival' | |||||
26 | from pylons import request, response, session, tmpl_context as c, url |
|
26 | from pylons import request, response, session, tmpl_context as c, url | |
27 | from pylons_app.lib.auth import LoginRequired |
|
27 | from pylons_app.lib.auth import LoginRequired | |
28 | from pylons_app.lib.base import BaseController, render |
|
28 | from pylons_app.lib.base import BaseController, render | |
|
29 | import pylons_app.lib.helpers as h | |||
29 | from pylons_app.model.hg_model import HgModel |
|
30 | from pylons_app.model.hg_model import HgModel | |
30 | from vcs.exceptions import RepositoryError, ChangesetError |
|
31 | from vcs.exceptions import RepositoryError, ChangesetError | |
31 | from vcs.utils import diffs as differ |
|
32 | from vcs.utils import diffs as differ | |
@@ -157,7 +158,7 b' class FilesController(BaseController):' | |||||
157 | return diff.raw_diff() |
|
158 | return diff.raw_diff() | |
158 |
|
159 | |||
159 | elif action == 'raw': |
|
160 | elif action == 'raw': | |
160 | c.cur_diff = '<pre class="raw">%s</pre>' % diff.raw_diff() |
|
161 | c.cur_diff = '<pre class="raw">%s</pre>' % h.escape(diff.raw_diff()) | |
161 | elif action == 'diff': |
|
162 | elif action == 'diff': | |
162 | c.cur_diff = diff.as_html() |
|
163 | c.cur_diff = diff.as_html() | |
163 |
|
164 |
General Comments 0
You need to be logged in to leave comments.
Login now