Explorar o código

Allow options to use HTML in trailing text

pdontthink %!s(int64=8) %!d(string=hai) anos
pai
achega
90a323d6c8
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      templates/default/options.tpl

+ 1 - 0
templates/default/options.tpl

@@ -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)) {
+// 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>';