Changeset 23 for trunk/lib/App.inc.php


Ignore:
Timestamp:
Dec 1, 2005 8:45:15 PM (19 years ago)
Author:
scdev
Message:

Added Email() class to work with verification, and sending of emails and templates. Updated Formvalidator to use the regex in Email().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r22 r23  
    479479        $event['type'] = $this->logPriorityToString($priority);
    480480        $event['file:line'] = "$file : $line";
    481         $event['message'] = strip_tags(preg_replace('/\s{2,}/', ' ', $message));
    482    
     481        preg_match_all('/(<[^>\s]{7,})[^>]*>/', $message, $strip_tags_allow); // <...> with lots of chars maybe we don't want stripped.
     482        $event['message'] = strip_tags(preg_replace('/\s{2,}/', ' ', $message), (!empty($strip_tags_allow[1]) ? join('> ', $strip_tags_allow[1]) . '>' : null));
    483483        $event_str = '[' . join('] [', $event) . ']';
    484484       
Note: See TracChangeset for help on using the changeset viewer.