Changeset 110

Show
Ignore:
Timestamp:
06/01/07 14:31:07 (2 years ago)
Author:
sven
Message:

mailblogger: unanchor username/pass from start of subject, in case of spamfilters changing the subject, etc.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mailblogger/lib.php

    r108 r110  
    227227                $continue = false; 
    228228                // TODO - this regexp might want tuning if impure addresses are expected 
    229                 if (preg_match('/^(.+)([0-9]{4})$/', $overview->subject, $matches)) { 
     229                if (preg_match('/([0-9a-zA-Z]+)([0-9]{4})$/', $overview->subject, $matches)) { 
    230230                    $username = $matches[1]; 
    231231                    $userpin = $matches[2];