From: Rasmus Lerdorf Date: Mon, 9 Jun 2008 14:05:49 +0000 (+0000) Subject: Merge from PHP_5 - don't echo raw cookie values here X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1563 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3dc903400b2cfebc0bb727cbc6971650d6dfe101;p=php Merge from PHP_5 - don't echo raw cookie values here --- diff --git a/ext/standard/head.c b/ext/standard/head.c index 4d2fe4fd78..545f072e47 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -70,12 +70,12 @@ PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, t int result; if (name && strpbrk(name, "=,; \t\r\n\013\014") != NULL) { /* man isspace for \013 and \014 */ - zend_error( E_WARNING, "Cookie names can not contain any of the folllowing '=,; \\t\\r\\n\\013\\014' (%s)", name ); + zend_error( E_WARNING, "Cookie names can not contain any of the folllowing '=,; \\t\\r\\n\\013\\014'" ); return FAILURE; } if (!url_encode && value && strpbrk(value, ",; \t\r\n\013\014") != NULL) { /* man isspace for \013 and \014 */ - zend_error( E_WARNING, "Cookie values can not contain any of the folllowing ',; \\t\\r\\n\\013\\014' (%s)", value ); + zend_error( E_WARNING, "Cookie values can not contain any of the folllowing ',; \\t\\r\\n\\013\\014'" ); return FAILURE; }