|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-08 01:20 UTC] rasmus@php.net
[2000-08-08 05:10 UTC] martin@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 30 22:00:01 2025 UTC |
It looks like line 256's strchr("_-.", str[y]) != NULL) is backwards. You want to execute the conditional if str[y] is not one of "_-.", in which case strchr() returns NULL. url.c:255-260 are: #else /*CHARSET_EBCDIC*/ } else if (!isalnum(str[y]) && strchr("_-.", str[y]) != NULL) { str[y++] = '%'; str[y++] = hexchars[os_toascii[(unsigned char) s[x]] >> 4]; str[y] = hexchars[os_toascii[(unsigned char) s[x]] & 0x0F]; } #endif /*CHARSET_EBCDIC*/