From 27efc2b2ce1b7b59939c276e26d4e31307d98b88 Mon Sep 17 00:00:00 2001 From: matbech Date: Tue, 13 Jan 2015 12:53:00 +0100 Subject: Bug fix for wrong regex in mail The wrong string PHP_WIN32_MAIL_UNIFY_REPLACE instead of PHP_WIN32_MAIL_UNIFY_PATTERN is used for the regex. --- win32/sendmail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32/sendmail.c') diff --git a/win32/sendmail.c b/win32/sendmail.c index d97231c9d6..cc2cc43fa0 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -165,7 +165,7 @@ static zend_string *php_win32_mail_trim_header(char *header) } ZVAL_STRINGL(&replace, PHP_WIN32_MAIL_UNIFY_REPLACE, strlen(PHP_WIN32_MAIL_UNIFY_REPLACE)); - regex = zend_string_init(PHP_WIN32_MAIL_UNIFY_REPLACE, sizeof(PHP_WIN32_MAIL_UNIFY_REPLACE)-1, 0); + regex = zend_string_init(PHP_WIN32_MAIL_UNIFY_PATTERN, sizeof(PHP_WIN32_MAIL_UNIFY_PATTERN)-1, 0); //zend_string *php_pcre_replace(zend_string *regex, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int limit, int *replace_count); -- cgit v1.2.1