Encountered following error in one of my webserver's log file (wrapped for easier display):
[Sat Sep 10 15:57:28 2011] [error] [client xxx.xxx.xxx.xxx] [Sat Sep 10 15:57:28 2011] save:
Use of uninitialized value in lc at /var/www/servers/twiki/lib/TWiki/UI/Save.pm line 469.
Bug is improper defaulting:
my $editaction = lc($query->param( 'editaction' )) || '';
Should be:
my $editaction = lc($query->param( 'editaction' ) || '');
TWiki SVN 20850 (trunk) - Visual diff note: the last ')' is moved.
I don't have a reproducer (I think it had something to do with a browser back), but this is an obvious coding bug. I also didn't run down the use to make sure that a null $editaction is sensible...
The same code is in 4.2.3 at line 428, so it's an old bug.
--
TWiki:Main/TimotheLitt
- 2011-09-10
Thanks Timothe! This is now fixed in SVN trunk and 5.1 branch.
--
TWiki:Main.PeterThoeny
- 2011-09-12