Tags:
create new tag
, view all tags

Bug: the function getEmailNotifyList corrupts the topic name

If you call the function getEmailNotifyList in TWiki.pm with two parameters, the $topicname will be corrupted by the |= operation.

See my fix below.

Test case

  • my @list = &TWiki::getEmailNotifyList("Main", "MyOwnNotify");
  • if you step inside, the $topicname will be OR'ed

Environment

TWiki version: CVS version from 2001-11-24
TWiki plugins: none
Server OS: linux
Web server: apache
Perl version: 5.6.1
Client OS: linux
Web Browser: any

-- StefanScherer - 24 Nov 2001

Fix record

I have fixed the line the following way. Please update the CVS.

<     $topicname |= $TWiki::notifyTopicname;
---
>     $topicname = $TWiki::notifyTopicname unless $topicname;

-- StefanScherer - 24 Nov 2001

Thanks for reporting. Is now in TWikiAlphaRelease.

-- PeterThoeny - 24 Nov 2001

Topic revision: r2 - 2001-11-24 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.