summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-10-21 18:51:57 +0000
committerSascha Schumann <sas@php.net>1999-10-21 18:51:57 +0000
commit31f38edf35895a6d070339fa6eac6b45f590334c (patch)
tree98f5004e5f78a7d1d224036694533ad84f8d46ec
parent01400c0c1529e1529b60a0f158b13e1938ee426e (diff)
downloadphp-git-31f38edf35895a6d070339fa6eac6b45f590334c.tar.gz
(_ps_files_valid_key): small logic fix
-rw-r--r--ext/session/mod_files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index b8cb0f7716..1bd4524579 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -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;
}