Changeset 310 for branches/1.1dev/lib


Ignore:
Timestamp:
Jan 31, 2008 9:54:13 AM (16 years ago)
Author:
quinn
Message:

Minor bugfixing. Added some admin css tweaks to 1.1dev.

Location:
branches/1.1dev/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1dev/lib/Email.inc.php

    r292 r310  
    260260        // Ensure all placeholders have been replaced. Find anything with {...} characters.
    261261        if (preg_match('/({[^}]+})/', $final_body, $unreplaced_match)) {
    262             logMsg(sprintf('Cannot send email. Variables left unreplaced in template: %s', (isset($unreplaced_match[1]) ? $unreplaced_match[1] : '')), LOG_ERR, __FILE__, __LINE__);
     262            logMsg(sprintf('Cannot send email. At least one variable left unreplaced in template: %s', (isset($unreplaced_match[1]) ? $unreplaced_match[1] : '')), LOG_ERR, __FILE__, __LINE__);
    263263            return false;
    264264        }
  • branches/1.1dev/lib/Upload.inc.php

    r287 r310  
    561561        $file_name = trim($file_name);
    562562        $file_name = strtr($file_name, $bad, $good);
    563         $file_name = preg_replace('/[^-\w.,~_=+\(\)]/', '_', $file_name);
     563        $file_name = preg_replace('/[^-\w.,~_=+]+/', '_', $file_name);
    564564        $file_name = substr($file_name, 0, 250);
    565565        return $file_name;
Note: See TracChangeset for help on using the changeset viewer.