From: <pdo...@us...> - 2008-10-07 19:47:18
|
Revision: 13300 http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=13300&view=rev Author: pdontthink Date: 2008-10-07 19:47:13 +0000 (Tue, 07 Oct 2008) Log Message: ----------- Allow text area options to use trailing_text attribute Modified Paths: -------------- trunk/squirrelmail/templates/default/options.tpl Modified: trunk/squirrelmail/templates/default/options.tpl =================================================================== --- trunk/squirrelmail/templates/default/options.tpl 2008-10-07 09:40:04 UTC (rev 13299) +++ trunk/squirrelmail/templates/default/options.tpl 2008-10-07 19:47:13 UTC (rev 13300) @@ -51,6 +51,8 @@ || $opt->type == SMOPT_TYPE_BOOLEAN) { echo '<label for="new_' . $opt->name . '">' . $opt->caption . '</label>'; + } else if ($opt->type == SMOPT_TYPE_TEXTAREA && !empty($opt->trailing_text)) { + echo $opt->caption . '<br />' . $opt->trailing_text; } else { echo $opt->caption; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2008-10-09 07:22:21
|
Revision: 13303 http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=13303&view=rev Author: pdontthink Date: 2008-10-09 07:22:08 +0000 (Thu, 09 Oct 2008) Log Message: ----------- Text area trailing text looks better miniaturized Modified Paths: -------------- trunk/squirrelmail/templates/default/options.tpl Modified: trunk/squirrelmail/templates/default/options.tpl =================================================================== --- trunk/squirrelmail/templates/default/options.tpl 2008-10-09 06:40:31 UTC (rev 13302) +++ trunk/squirrelmail/templates/default/options.tpl 2008-10-09 07:22:08 UTC (rev 13303) @@ -52,7 +52,7 @@ echo '<label for="new_' . $opt->name . '">' . $opt->caption . '</label>'; } else if ($opt->type == SMOPT_TYPE_TEXTAREA && !empty($opt->trailing_text)) { - echo $opt->caption . '<br />' . $opt->trailing_text; + echo $opt->caption . '<br /><small>' . $opt->trailing_text . '</small>'; } else { echo $opt->caption; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2017-07-25 22:25:42
|
Revision: 14706 http://sourceforge.net/p/squirrelmail/code/14706 Author: pdontthink Date: 2017-07-25 22:25:39 +0000 (Tue, 25 Jul 2017) Log Message: ----------- Allow options to use HTML in trailing text Modified Paths: -------------- trunk/squirrelmail/templates/default/options.tpl Modified: trunk/squirrelmail/templates/default/options.tpl =================================================================== --- trunk/squirrelmail/templates/default/options.tpl 2017-07-25 22:16:04 UTC (rev 14705) +++ trunk/squirrelmail/templates/default/options.tpl 2017-07-25 22:25:39 UTC (rev 14706) @@ -63,6 +63,7 @@ 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>'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |