Ignore:
Timestamp:
05/24/09 12:15:55 (3 years ago)
Author:
CrawfordCurrie
Message:

Item1603: use quotes to protect topic names with odd characters in them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MailerContrib/test/unit/MailerContrib/MailerContribSuite.pm

    r3944 r3974  
    2020    TestTopic122  => "r1->r2", 
    2121    TestTopic1221 => "r1->r2", 
    22     TestTopic2    => "r2->r3", 
    23     TestTopic21   => "r1->r2", 
     22    'TestTopic2'    => "r2->r3", 
     23    'TestTopic21'   => "r1->r2", 
    2424); 
    2525 
     
    3434    TestTopic122  => "That danged robot", 
    3535    TestTopic1221 => "What's up, Buck?", 
    36     TestTopic2    => "roast my nipple-nuts", 
    37     TestTopic21   => "smoke me a kipper, I'll be back for breakfast", 
     36    'TestTopic2'    => "roast my nipple-nuts", 
     37    'TestTopic21'   => "smoke me a kipper, I'll be back for breakfast", 
    3838 
    3939    # High-bit chars - assumes {Site}{CharSet} is set for a high-bit 
     
    145145        { 
    146146            email     => "email4\@example.com", 
    147             entry     => "email4\@example.com: TestTopic1 (0), TestTopic2 (3)", 
     147            entry     => "email4\@example.com: TestTopic1 (0), 'TestTopic2' (3)", 
    148148            topicsout => "TestTopic1 TestTopic2 TestTopic21" 
    149149        }, 
     
    153153            email => "email5\@example.com", 
    154154            entry => 
    155               "email5\@example.com: TestTopic1 + TestTopic2(3), -TestTopic21", 
     155              "email5\@example.com: TestTopic1 + 'TestTopic2'(3), -'TestTopic21'", 
    156156            topicsout => "TestTopic1 TestTopic2" 
    157157        }, 
     
    167167        { 
    168168            email => "email7\@example.com", 
    169             entry => "email7\@example.com: TestTopic*1 - \\\n   TestTopic2*", 
     169            entry => "email7\@example.com: TestTopic*1 - \\\n   'TestTopic2*'", 
    170170            topicsout => "TestTopic1 TestTopic11 TestTopic121", 
    171171        }, 
     
    338338        ( $meta, $text ) = Foswiki::Func::readTopic( $web, "TestTopic2" ); 
    339339        Foswiki::Func::saveTopic( $web, "TestTopic2", $meta, 
    340             $finalText{TestTopic2}, { forcenewrevision => 1 } ); 
     340            $finalText{'TestTopic2'}, { forcenewrevision => 1 } ); 
    341341 
    342342        ( $meta, $text ) = Foswiki::Func::readTopic( $web, "TestTopic21" ); 
    343343        Foswiki::Func::saveTopic( $web, "TestTopic21", $meta, 
    344             $finalText{TestTopic21}, { forcenewrevision => 1 } ); 
     344            $finalText{'TestTopic21'}, { forcenewrevision => 1 } ); 
    345345 
    346346        # wait a wee bit more for the clock to tick over again 
Note: See TracChangeset for help on using the changeset viewer.