r2 - 24 Nov 2001 - 20:56:21 - PeterThoenyYou are here: TWiki >  Codev Web > GetEmailNotifyListCorruptsTopic
Tags:
, create new tag

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

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo