• 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.

Item4683: that putting the word CGI into ==='s makes it dissapear.

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed   patch 4.2.2, 5.0.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

from TWiki:Support/BugInvisableTableEntries

that putting the word CGI into ==='s makes it dissapear.

Terry worked out that its the cpan CGI module, thats being clever with what it obviously thinks is a reserved word.

- TWiki:Main/SvenDowideit - 20 Sep 2007

Sounds like this should be reported/fixed upstream?

-- TWiki:Main.SteffenPoulsen - 24 Sep 2007

Test case: CGI and CIA (CGI and CIA)

Reprioritizing to normal; this is not a release blocker.

-- PTh - 25 Sep 2007

Yes, this should be reported upstream.

-- TWiki:Main.PeterThoeny - 25 Sep 2007

I assume from the lack of tracking information that no-one has followed this up.

CC

Reported upstream as:

-- TWiki:Main.SteffenPoulsen - 22 Dec 2007

At Apr 14th, there was an answer to the report:

Seg. Abr. 14 13:39:10 2008 LDS - Correspondência adicionada

This is part of a more general bug that can't be fixed. The workaround is to call CGI->code('CGI') or $q=new CGI; $q->code('CGI')

The bug is unfixable cause CGI.pm was designed to have procedural and OO interfaces. Remember that Foo::bar('Foo', 'baz') is equivalent to Foo->bar('baz'), I mean: CGI::code('CGI') is interpreted as CGI->code() and we have no output! As stated, a good workaround is: CGI->code($text). Translated to TWiki (don't worry about revision number. I use a private mirror with SVK to develop):

=== TWiki/Render.pm
==================================================================
--- TWiki/Render.pm     (revision 15810)
+++ TWiki/Render.pm     (local)
@@ -342,7 +342,7 @@
     $theText =~ s/\t/   /g;
     $theText =~ s|((?:[\s]{2})+)([^\s])|'  ' x (length($1) / 2) . $2|eg;
     $theText = CGI::b( $theText ) if $theDoBold;
-    return CGI::code( $theText );
+    return CGI->code( $theText );
 }

 # Build an HTML &lt;Hn> element with suitable anchor for linking from %<nop>TOC%

I'll test it later and if unit tests passes, I'll checkin.

-- TWiki:Main.GilmarSantosJr - 09 Aug 2008

It was also needed to change CGI::b() to CGI->b().

-- TWiki:Main.GilmarSantosJr - 09 Aug 2008

ItemTemplate
Summary that putting the word CGI into ==='s makes it dissapear.
ReportedBy TWiki:Main.SvenDowideit
Codebase 4.1.2, 4.2.0, ~twiki4
SVN Range TWiki-4.3.0, Wed, 19 Sep 2007, build 14949
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:17376 TWikirev:17377
TargetRelease patch
ReleasedIn 4.2.2, 5.0.0
Edit | Attach | Watch | Print version | History: r13 < r12 < r11 < r10 < r9 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r13 - 2008-08-11 - SvenDowideit
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback