]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix mail template to use p() for colors
authorVincent Petry <pvince81@owncloud.com>
Mon, 3 Mar 2014 16:36:12 +0000 (17:36 +0100)
committerVincent Petry <pvince81@owncloud.com>
Mon, 3 Mar 2014 16:36:12 +0000 (17:36 +0100)
Now using p() instead of print_unescaped() for colors.

core/templates/mail.php

index 854240a976fa8f15a6857902c49432daf6e5b613..ae46eaca788330a70389c49689051f4f5f28dee1 100644 (file)
@@ -2,9 +2,9 @@
 <tr><td>
 <table cellspacing="0" cellpadding="0" border="0" width="600px">
 <tr>
-<td bgcolor="<?php print_unescaped($theme->getMailHeaderColor());?>" width="20px">&nbsp;</td>
-<td bgcolor="<?php print_unescaped($theme->getMailHeaderColor());?>">
-<img src="<?php print_unescaped(OC_Helper::makeURLAbsolute(image_path('', 'logo-mail.gif'))); ?>" alt="<?php p($theme->getName()); ?>"/>
+<td bgcolor="<?php p($theme->getMailHeaderColor());?>" width="20px">&nbsp;</td>
+<td bgcolor="<?php p($theme->getMailHeaderColor());?>">
+<img src="<?php p(OC_Helper::makeURLAbsolute(image_path('', 'logo-mail.gif'))); ?>" alt="<?php p($theme->getName()); ?>"/>
 </td>
 </tr>
 <tr><td colspan="2">&nbsp;</td></tr>
@@ -27,7 +27,7 @@ p($l->t('Cheers!'));
 <td style="font-weight:normal; font-size:0.8em; line-height:1.2em; font-family:verdana,'arial',sans;">--<br>
 <?php p($theme->getName()); ?> -
 <?php p($theme->getSlogan()); ?>
-<br><a href="<?php print_unescaped($theme->getBaseUrl()); ?>"><?php print_unescaped($theme->getBaseUrl());?></a>
+<br><a href="<?php p($theme->getBaseUrl()); ?>"><?php p($theme->getBaseUrl());?></a>
 </td>
 </tr>
 <tr>