com php-src: fixed nl2br: ext/standard/string.c
| From: | Anatol Belski | Date: | Wed, 20 Aug 2014 13:32:24 +0000 |
| Subject: | com php-src: fixed nl2br: ext/standard/string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-80727@lists.php.net to get a copy of this message | ||
Commit: 38c4db54dde1d82769f8c3e3775656d58db0a24a
Author: Anatol Belski <ab@php.net> Wed, 20 Aug 2014 15:32:24 +0200
Parents: 33d2442a32fe6d55b752e347f44826c5010b1aec
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=38c4db54dde1d82769f8c3e3775656d58db0a24a
Log:
fixed nl2br
Changed paths:
M ext/standard/string.c
Diff:
diff --git a/ext/standard/string.c b/ext/standard/string.c
index a1a87e8..5a4bf8a 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -4122,7 +4122,7 @@ PHP_FUNCTION(nl2br)
*target++ = '>';
if ((*tmp == '\r' && *(tmp+1) == '\n') || (*tmp == '\n'
&& *(tmp+1) == '\r')) {
- *target++ = (*tmp)++;
+ *target++ = *tmp++;
}
/* lack of a break; is intentional */
default: