Skip to content

Commit

Permalink
Merge pull request #312 from viewvc/issue-311-escape-paths-in-changeset
Browse files Browse the repository at this point in the history
issue #311: HTML escape paths in change set.
  • Loading branch information
cmpilato committed Jan 3, 2023
2 parents cf136ba + 708f295 commit 27b93ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/viewvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4536,7 +4536,7 @@ def view_revision(request):
)

# use same variable names as the log template
change.path = _path_join(change.path_parts)
change.path = request.server.escape(path)
change.copy_path = _path_join(change.base_path_parts)
change.copy_rev = change.base_rev
change.text_mods = ezt.boolean(change.text_changed)
Expand Down

0 comments on commit 27b93ff

Please sign in to comment.