summaryrefslogtreecommitdiff
path: root/win32/sendmail.c
diff options
context:
space:
mode:
authormatbech <mberchtold@gmail.com>2015-01-13 12:53:00 +0100
committerAnatol Belski <ab@php.net>2015-01-15 15:07:10 +0100
commit27efc2b2ce1b7b59939c276e26d4e31307d98b88 (patch)
treeeffa6cce720a8f8ec63940c7f1e7f31b7634f7a8 /win32/sendmail.c
parent989daeb5bb0d4efe39c42e98a2741c2f178bb411 (diff)
downloadphp-git-27efc2b2ce1b7b59939c276e26d4e31307d98b88.tar.gz
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.
Diffstat (limited to 'win32/sendmail.c')
-rw-r--r--win32/sendmail.c2
1 files changed, 1 insertions, 1 deletions
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);