• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

From teh Apache logs:

[Fri Jul 15 08:27:07 2005] [error] [client 24.156.198.143] [Fri Jul 15 08:27:07 2005] view: Use of uninitialized value in pattern match (m//) at /home/anton/infosecwiki/lib/TWiki/Render.pm line 1360.

The relvant section of code is:


   1352 sub protectPlainText {
   1353     my( $this, $text ) = @_;
   1354
   1355     # Encode special chars into XML &#nnn; entities for use in RSS feeds
   1356     # - no encoding for HTML pages, to avoid breaking international
   1357     # characters. Only works for ISO-8859-1 sites, since the Unicode
   1358     # encoding (&#nnn;) is identical for first 256 characters.
   1359     # I18N TODO: Convert to Unicode from any site character set.
   1360     if( $this->{MODE} eq 'rss' and $TWiki::siteCharset =~ /^iso-?8859-?1$/i ) {
   1361         $text =~ s/([\x7f-\xff])/"\&\#" . unpack( 'C', $1 ) .';'/ge;
   1362     }
   1363
   1364     # prevent text from getting rendered in inline search and link tool
   1365     # tip text by escaping links (external, internal, Interwiki)
   1366     $text =~ s/(?<=[\s\(])((($TWiki::regex{webNameRegex})\.)?($TWiki::regex{wikiWordRegex}|$TWiki::regex{abbrevReg        ex}))/<nop>$1/g;
   1367     $text =~ s/(?<=[\-\*\s])($TWiki::regex{linkProtocolPattern}\:)/<nop>$1/go;
   1368     $text =~ s/([@%])/@<nop>$1/g;    # email address, variable
   1369
   1370     return $text;
   1371 }


Thanks for the excellent report!

Fixed SVN 4659 CC

ItemTemplate
Summary Uninitialized values in Render.pm
ReportedBy TWiki:Main/AntonAylward
Codebase

AppliesTo

Priority Low
CurrentState Closed
WaitingFor

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2005-07-17 - TWikiGuest
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback