Skip to content

Commit

Permalink
FS#2748, fix double encoding of html entities in subscription email d…
Browse files Browse the repository at this point in the history
…iffs (updates subscription.php for changes to Diff class introduced in PR#179)
  • Loading branch information
Chris--S committed Apr 10, 2013
1 parent a494ed3 commit f755f63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/subscription.php
Expand Up @@ -408,8 +408,8 @@ public function send_diff($subscriber_mail, $template, $id, $rev = null, $summar
$tdiff = $dformat->format($df);

$DIFF_INLINESTYLES = true;
$df = new Diff(explode("\n", hsc($old_content)),
explode("\n", hsc($new_content)));
$df = new Diff(explode("\n", $old_content),
explode("\n", $new_content));
$dformat = new InlineDiffFormatter();
$hdiff = $dformat->format($df);
$hdiff = '<table>'.$hdiff.'</table>';
Expand Down

0 comments on commit f755f63

Please sign in to comment.