Changeset 4028
- Timestamp:
- 06/04/09 00:11:51 (3 years ago)
- Location:
- branches/Release01x00/CommentPlugin/data/System
- Files:
-
- 2 edited
-
CommentPlugin.txt (modified) (1 diff)
-
CommentPluginTemplate.txt (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/Release01x00/CommentPlugin/data/System/CommentPlugin.txt
r3417 r4028 251 251 | Plugin Version: | %$VERSION% | 252 252 | Change History: | | 253 | 04 Jun 2009 | Foswikitask:Item1668 - The action template used with !ActionTrackerPlugin now uses new syntax ending with %ENDACTION. This makes each action item appear on a new line. Additionally new lines are now correctly saved as html br tags and not as html encoded br tag <br /> Foswikitask:Item1640 - Templates shipped with the plugin no longer encodes the user date entered when the date is saved so that it is possible for the user to use macros. | 253 254 | 15 Jan 2008 | Foswikitask:Item727 - data loss issue when missing anchor or location | 254 | 13 Jan 2009 | Foswikitask: 736Make !CommentPlugin aware of CompareRevisionsAddOn bin script. |255 | 13 Jan 2009 | Foswikitask:Item736 - Make !CommentPlugin aware of CompareRevisionsAddOn bin script. | 255 256 | 16 Dec 2008 | Foswiki version | 256 257 | 03 Aug 2008 | The TWiki 4.2.1 release version | -
branches/Release01x00/CommentPlugin/data/System/CommentPluginTemplate.txt
r3987 r4028 17 17 18 18 ---++ Template definitions 19 20 %X% Note that the use of URLPARAM in the templates should be done in a way that prevents Cross Site Scripting attacks. The safest is to let URLPARAM encode the unsafe characters (default) but this prevents the user from entering Foswiki macros in the comment input fields. It is however safe to use encode="off" when the following rules are observed. 21 * The encode="off" option for URLPARAM is only used in this topic within verbatim tags to prevent this topic from being an XSS attack vector. 22 * The encode="off" option is only used in OUTPUT defs and never in the PROMPT. 23 19 24 ---+++ Templates used in rest of file 20 25 Generic prompt box used by other templates … … 24 29 Short comment, signed and dated 25 30 <verbatim> 26 %TMPL:DEF{outputoneliner}% * %URLPARAM{"comment" }% -- %WIKIUSERNAME% - %GMTIME{"$day $month $year"}%%TMPL:END%31 %TMPL:DEF{outputoneliner}% * %URLPARAM{"comment" encode="off"}% -- %WIKIUSERNAME% - %GMTIME{"$day $month $year"}%%TMPL:END% 27 32 </verbatim> 28 33 … … 87 92 </verbatim> 88 93 <verbatim> 89 %TMPL:DEF{OUTPUT:bulletabove}% * %URLPARAM{"bullet_above_item" }%%POS:BEFORE%94 %TMPL:DEF{OUTPUT:bulletabove}% * %URLPARAM{"bullet_above_item" encode="off"}%%POS:BEFORE% 90 95 %TMPL:END% 91 96 </verbatim> … … 104 109 %TMPL:DEF{OUTPUT:threadmode}%%POS:BEFORE% 105 110 106 %URLPARAM{"comment" }%111 %URLPARAM{"comment" encode="off"}% 107 112 108 113 -- %WIKIUSERNAME% - %DATE% … … 125 130 ---++++ %WIKIUSERNAME% - %SERVERTIME% 126 131 127 %URLPARAM{"comment" }%132 %URLPARAM{"comment" encode="off"}% 128 133 129 134 %TMPL:END% … … 157 162 </verbatim> 158 163 <verbatim> 159 %TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| %URLPARAM{"comment" newline="<br />" }% | %WIKIUSERNAME% | %SERVERTIME% |164 %TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| %URLPARAM{"comment" newline="<br />" encode="off"}% | %WIKIUSERNAME% | %SERVERTIME% | 160 165 %TMPL:END% 161 166 </verbatim> … … 172 177 </verbatim> 173 178 <verbatim> 174 %TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| %URLPARAM{"comment" newline="<br />" }% | %WIKIUSERNAME% | %SERVERTIME% |179 %TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| %URLPARAM{"comment" newline="<br />" encode="off"}% | %WIKIUSERNAME% | %SERVERTIME% | 175 180 %TMPL:END% 176 181 </verbatim> … … 209 214 </verbatim> 210 215 <verbatim> 211 %TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%AC%NOP%TION{who="%URLPARAM{"action_who" }%" due="%URLPARAM{"action_due"}%"}% %URLPARAM{"action_comment"}%<br />- Created by %WIKIUSERNAME%, %SERVERTIME%%ENDACTION%216 %TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%AC%NOP%TION{who="%URLPARAM{"action_who" encode="off"}%" due="%URLPARAM{"action_due" encode="off"}%"}% %URLPARAM{"action_comment" encode="off"}%<br />- Created by %WIKIUSERNAME%, %SERVERTIME%%ENDACTION% 212 217 %TMPL:END% 213 218 </verbatim> … … 229 234 </verbatim> 230 235 <verbatim> 231 %TMPL:DEF{OUTPUT:table}%%POS:BEFORE%| %URLPARAM{"comment_date" }% | %WIKIUSERNAME% | %URLPARAM{"comment_city"}% |236 %TMPL:DEF{OUTPUT:table}%%POS:BEFORE%| %URLPARAM{"comment_date" encode="off"}% | %WIKIUSERNAME% | %URLPARAM{"comment_city" encode="off"}% | 232 237 %TMPL:END% 233 238 </verbatim> … … 250 255 <verbatim> 251 256 %TMPL:DEF{OUTPUT:toctalk}% 252 %POS:BEFORE%---++++ %SERVERTIME% %WIKIUSERNAME%: %URLPARAM{"comment_summary" }%253 %POS:BEFORE%%URLPARAM{"toctalk_comment_text" }%257 %POS:BEFORE%---++++ %SERVERTIME% %WIKIUSERNAME%: %URLPARAM{"comment_summary" encode="off"}% 258 %POS:BEFORE%%URLPARAM{"toctalk_comment_text" encode="off"}% 254 259 %POS:BEFORE% 255 260 %TMPL:END%
Note: See TracChangeset
for help on using the changeset viewer.
