Skip to content

Commit

Permalink
More fixes for escaping subject information
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Mar 21, 2014
1 parent c880f39 commit b699c43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imp/js/dimpbase.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ var DimpBase = {
if (h == 'subject') {
/* This is an attribute, so we need to escape
* quotes only. */
r.subjecttitle = r[h].gsub('"', '"');
r.subjecttitle = r[h].escapeHTML().gsub('"', '"');
}

r[h] = r[h].escapeHTML();
Expand Down
2 changes: 1 addition & 1 deletion imp/js/smartmobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ var ImpMobile = {

list.append(
c.append(
$('<a href="' + url + '"></a>').html(val.data.subject)).append(
$('<a href="' + url + '"></a>').text(val.data.subject)).append(
$('<div class="imp-mailbox-secondrow"></div>').append(
$('<span class="imp-mailbox-date"></span>').text(
val.data.date)).append(
Expand Down

0 comments on commit b699c43

Please sign in to comment.