mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
(_ps_files_valid_key): small logic fix
This commit is contained in:
parent
01400c0c15
commit
31f38edf35
1 changed files with 2 additions and 2 deletions
|
@ -70,9 +70,9 @@ static int _ps_files_valid_key(const char *key)
|
|||
|
||||
for(p = key; (c = *p); p++) {
|
||||
/* valid characters are a..z,A..Z,0..9 */
|
||||
if(!(c >= 'a' && c <= 'z') ||
|
||||
if(!((c >= 'a' && c <= 'z') ||
|
||||
(c >= 'A' && c <= 'Z') ||
|
||||
(c >= '0' && c <= '9')) {
|
||||
(c >= '0' && c <= '9'))) {
|
||||
ret = 0;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue