Show More
@@ -23,6 +23,7 b' from pyramid.view import view_config' | |||
|
23 | 23 | |
|
24 | 24 | from rhodecode.apps._base import RepoAppView |
|
25 | 25 | from rhodecode.lib import audit_logger |
|
26 | from rhodecode.lib import helpers as h | |
|
26 | 27 | from rhodecode.lib.auth import (LoginRequired, HasRepoPermissionAnyDecorator, |
|
27 | 28 | NotAnonymous) |
|
28 | 29 | from rhodecode.lib.ext_json import json |
@@ -64,10 +65,11 b' class StripView(RepoAppView):' | |||
|
64 | 65 | for i in range(1, 11): |
|
65 | 66 | chset = 'changeset_id-%d' % (i,) |
|
66 | 67 | check = rp.get(chset) |
|
68 | ||
|
67 | 69 | if check: |
|
68 | 70 | data[i] = self.db_repo.get_changeset(rp[chset]) |
|
69 | 71 | if isinstance(data[i], EmptyCommit): |
|
70 | data[i] = {'rev': None, 'commit': rp[chset]} | |
|
72 | data[i] = {'rev': None, 'commit': h.escape(rp[chset])} | |
|
71 | 73 | else: |
|
72 | 74 | data[i] = {'rev': data[i].raw_id, 'branch': data[i].branch, |
|
73 | 75 | 'author': data[i].author, |
General Comments 0
You need to be logged in to leave comments.
Login now