Allow options to use HTML in trailing text
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 25 Jul 2017 22:25:39 +0000 (22:25 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 25 Jul 2017 22:25:39 +0000 (22:25 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14706 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/default/options.tpl

index 05337c3530f55934885f6c73c8aac18e2c365712..2aef407a8ee20b12be2c6beee8f9d1cd869f5ec0 100644 (file)
@@ -63,6 +63,7 @@ foreach ($option_groups as $option) {
 
             echo '<label for="new_' . $opt->name . '">' . $opt->caption;
             if ($opt->type == SMOPT_TYPE_TEXTAREA && !empty($opt->trailing_text)) {
 
             echo '<label for="new_' . $opt->name . '">' . $opt->caption;
             if ($opt->type == SMOPT_TYPE_TEXTAREA && !empty($opt->trailing_text)) {
+// TODO: Is trailing_text already sanitized here? (sm_encode_html_special_chars())  Either way, we want to have an option to sanitize or not depending on $opt->trailing_text_is_html ---- note that this question may already be taken care of in functions/options.php and irrelevant here, but I'm not sure about that yet.... after looking a little, it does appear this is a problem, though where to solve it is not clear
                 echo '<br /><small>' . $opt->trailing_text . '</small>';
             }
             echo '</label>';
                 echo '<br /><small>' . $opt->trailing_text . '</small>';
             }
             echo '</label>';