You are here: Foswiki>Tasks Web>Item9517 (22 Aug 2010, GeorgeClark)Edit Attach

Item9517: Taint error after cancel of edit of new topic

pencil
Priority: Urgent
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
Code in Foswiki::UI::Save doesn't untaint topics as it looks for an existing topic to redirect to after cancel.

Assertion (topic is tainted) failed!
 at /var/www/foswiki/trunk/core/lib/Assert.pm line 80
   Assert::ASSERT(undef, 'topic is tainted') called at /var/www/foswiki/trunk/core/lib/Foswiki.pm line 3620
   Foswiki::topicExists('Foswiki=HASH(0x84b0268)', 'Main', 'WebHome') called at /var/www/foswiki/trunk/core/lib/Foswiki/UI/Save.pm line 468
   Foswiki::UI::Save::save('Foswiki=HASH(0x84b0268)') called at /var/www/foswiki/trunk/core/lib/Foswiki/UI.pm line 310
   Foswiki::UI::__ANON__() called at /usr/lib/perl5/vendor_perl/5.10.1/Error.pm line 415
   eval {...} called at /usr/lib/perl5/vendor_perl/5.10.1/Error.pm line 407
   Error::subs::try('CODE(0x804e2c8)', 'HASH(0x84aff98)') called at /var/www/foswiki/trunk/core/lib/Foswiki/UI.pm line 429
   Foswiki::UI::_execute('Foswiki::Request=HASH(0x846cc30)', 'CODE(0x84a13f8)', 'save', 1) called at /var/www/foswiki/trunk/core/lib/Foswiki/UI.pm line 277
   Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x846cc30)') called at /var/www/foswiki/trunk/core/lib/Foswiki/Engine/CGI.pm line 30
   Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x81f6d80)') called at save line 24
 at /var/www/foswiki/trunk/core/lib/Assert.pm line 80
   Assert::ASSERT(undef, 'topic is tainted') called at /var/www/foswiki/trunk/core/lib/Foswiki.pm line 3620
   Foswiki::topicExists('Foswiki=HASH(0x84b0268)', 'Main', 'WebHome') called at /var/www/foswiki/trunk/core/lib/Foswiki/UI/Save.pm line 468
   Foswiki::UI::Save::save('Foswiki=HASH(0x84b0268)') called at /var/www/foswiki/trunk/core/lib/Foswiki/UI.pm line 310
   Foswiki::UI::__ANON__() called at /usr/lib/perl5/vendor_perl/5.10.1/Error.pm line 415
   eval {...} called at /usr/lib/perl5/vendor_perl/5.10.1/Error.pm line 407
   Error::subs::try('CODE(0x804e2c8)', 'HASH(0x84aff98)') called at /var/www/foswiki/trunk/core/lib/Foswiki/UI.pm line 429
   Foswiki::UI::_execute('Foswiki::Request=HASH(0x846cc30)', 'CODE(0x84a13f8)', 'save', 1) called at /var/www/foswiki/trunk/core/lib/Foswiki/UI.pm line 277
   Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x846cc30)') called at /var/www/foswiki/trunk/core/lib/Foswiki/Engine/CGI.pm line 30
   Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x81f6d80)') called at save line 24.
-- GeorgeClark - 21 Aug 2010

 

ItemTemplate edit

Summary Taint error after cancel of edit of new topic
ReportedBy GeorgeClark
Codebase trunk
SVN Range
AppliesTo Engine
Component
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:f19f7006c29b
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r3 - 22 Aug 2010, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy