[Home]WikiBugs/BadBannedFileParsing

UseModWiki | WikiBugs | RecentChanges | Preferences

Fixed for 1.0. --CliffordAdams
The parsing of the banned file in the UserIsBanned? function is incorrect. Since the text was entered in a form textarea, the line termination may include \r, causing matches to fail.

Workaround is to strip \r characters upon file load:

    ($status, $data) = &ReadFile("$DataDir/banlist");
    $data =~ s/\r//g;

UseModWiki | WikiBugs | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited August 14, 2003 12:39 pm by 24-193-103-235.nyc.rr.com (diff)
Search: