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