NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item972: Undefined subroutine &Foswiki::Form::Select::TAINT called
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Urgent |
Closed |
Engine |
|
|
I built a small app with forms in TWiki. Two days ago I switched to foswiki and I get the following error, when I try to edit an existing Topic or add a new one:
Undefined subroutine &Foswiki::Form::Select::TAINT called
It refers to /lib/Foswiki/Forms/Select.pm, Changing line $str = TAINT($1); to $str = $1; "fixed" the Problem.
Any Idea whats wrong?
Other Webs, other Forms, even other Forms in the same Web work well.
Example Link for creating a topic:
http://wiki.example.com/foswiki/bin/edit/Media/BibliothekBestandAUTOINC0001?topicparent=Bibliothek;templatetopic=BibliothekBestandTemplate;formtemplate=Media.BibliothekForm;action=form
--
ChristianSchmidt
setting to urgent until we know that its not a Foswiki issue, or until we give up waiting for details.
Christian, as the URL isn't a real one, can you give us the form definition too?
--
SvenDowideit - 08 Feb 2009
TAINT is defined in Assert.pm, and this module must be imported for a TAINT call to work. It isn't imorted in this case, which strongly suggests that this code is not exercised during unit tests. The code should be exercised by a select+values.
Confirmed and fixed.
--
CrawfordCurrie - 08 Feb 2009