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