Tags:
create new tag
view all tags

Bug: Set statements in verbatim are not ignored

Test case

Add the following to any preference topic, save and refresh:

<verbatim>
   * Set WEBBGCOLOR = red
</verbatim>

Environment

TWiki version: TWikiAlphaRelease (here on twiki.org)
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: various
Perl version: various
Client OS:  
Web Browser:  

-- MattWilkie - 05 Mar 2004

Follow up

Apologies, but this is working as intended. If you'll note, the HTTP_EQUIV_ON_VIEW settings in TWikiPreferences occur inside a <verbatim> block, so they get displayed properly in view mode.

-- WalterMundt - 05 Mar 2004

Oh. I had assumed that verbatim was supposed to escape any and all processing of its contents. What else isn't escaped? Is this documented?

-- MattWilkie - 07 Mar 2004

Verbatim turns off all formatting, except that <'s and >'s are automatically escaped and the whole thing is placed in a pre block. Plugins that read topics directly can operate on verbatim contents if they wish, but plugins using rendering hooks will never see verbatim blocks IIRC.

Verbatim does not escape any settings, which includes both preference and access control settings.

-- WalterMundt - 07 Mar 2004

I wonder about this. It seems reasonable to me to assume that verbatim shouldn't set properties. One of it's main uses is showing code fragment and generally I'd think you wouldn't want those executed. I suggest we change this, possible with a option to allow this to be turned on. I've changed category from BugRejected to FeatureEnhancementRequest

-- JohnTalintyre - 08 Mar 2004

Fix record

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2004-03-08 - JohnTalintyre
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.