mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Add missing preg delimiters. Props ridgerunner. fixes #8986 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10459 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1409,7 +1409,7 @@ class PHPMailer {
|
||||
*/
|
||||
function EncodeQ ($str, $position = 'text') {
|
||||
/* There should not be any EOL in the string */
|
||||
$encoded = preg_replace("[\r\n]", '', $str);
|
||||
$encoded = preg_replace("/[\r\n]/", '', $str);
|
||||
|
||||
switch (strtolower($position)) {
|
||||
case 'phrase':
|
||||
|
||||
Reference in New Issue
Block a user