Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(201)

Issue 1892053: remove invalid XML chars from multi-line diff AJAX response

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 5 months ago by Jake McGuire
Modified:
15 years, 4 months ago
Reviewers:
Andi Albrecht
Base URL:
http://rietveld.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Some people put ^L in their source code files as a means of separating functions or whatever. ^L is not a valid XML character, so when we try to send it back in response to the AJAX request to show hidden lines in a side-by-side diff we get an ExpatError. There is no common function to remove illegal XML characters, so I created one and called it in the appropriate place.

Patch Set 1 #

Patch Set 2 : add a comment explaining what's going on and correct number of newlines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -0 lines) Patch
M codereview/views.py View 1 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 3
Andi Albrecht
Hey Jake, sorry, I missed that. Is that ready for review? Andi
15 years, 4 months ago (2010-08-22 10:20:47 UTC) #1
Jake McGuire
Yup. It's ready for review, and has been running on the Chromium Rietveld instance for ...
15 years, 4 months ago (2010-08-23 04:12:58 UTC) #2
Andi Albrecht
15 years, 4 months ago (2010-08-24 09:01:45 UTC) #3
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b