Item9517: Taint error after cancel of edit of new topic
Priority: Urgent
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
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