Changeset 216


Ignore:
Timestamp:
Dec 13, 2006 12:23:10 AM (17 years ago)
Author:
scdev
Message:

Q - fixed a bug in Email.inc.php where replacement values were not being escaped.

File:
1 edited

Legend:

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

    r212 r216  
    211211        // Apply regex pattern to search elements.
    212212        $search = array_keys($replacements);
    213         array_walk($search, create_function('&$v', '$v = "/{" . preg_quote($v) . "}/i";'));
     213        array_walk($search, create_function('&$v', '$v = "{" . strtoupper($v) . "}";'));
    214214
    215215        // Replacement values.
     
    217217
    218218        // Search and replace all values at once.
    219         $this->_template_replaced = preg_replace($search, $replace, $this->_template);
     219        $this->_template_replaced = str_replace($search, $replace, $this->_template);
    220220    }
    221221
Note: See TracChangeset for help on using the changeset viewer.