]> granicus.if.org Git - php/commitdiff
No point in echoeing the raw value back here in the error message
authorRasmus Lerdorf <rasmus@php.net>
Fri, 22 Feb 2008 05:13:20 +0000 (05:13 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Fri, 22 Feb 2008 05:13:20 +0000 (05:13 +0000)
ext/standard/head.c

index 31fe16775d8e09aa0924a4a70aeca5d33901561f..7728b669f241272f6a17729d859fb26c7505b7c0 100644 (file)
@@ -69,12 +69,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;
        }