php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #69409
Patch php-urlencode-asterisk-0x2a revision 2015-04-09 16:36 UTC by rainer-phpbugs at 7val dot com

Patch php-urlencode-asterisk-0x2a for URL related Bug #69409

Patch version 2015-04-09 16:36 UTC

Return to Bug #69409 | Download this patch
Patch Revisions:

Developer: rainer-phpbugs@7val.com

--- a/php-5.6.7/ext/standard/url.c
+++ b/php-5.6.7/ext/standard/url.c
@@ -497,7 +497,7 @@ PHPAPI char *php_url_encode(char const *s, int len, int *new_length)
 		if (c == ' ') {
 			*to++ = '+';
 #ifndef CHARSET_EBCDIC
-		} else if ((c < '0' && c != '-' && c != '.') ||
+		} else if ((c < '0' && c != '-' && c != '.' && c != '*') ||
 				   (c < 'A' && c > '9') ||
 				   (c > 'Z' && c < 'a' && c != '_') ||
 				   (c > 'z')) {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 05 02:01:30 2024 UTC