cvs: php4 /ext/session mod_files.c
| From: | Sascha Schumann | Date: | Tue, 11 Jul 2000 12:29:19 +0000 |
| Subject: | cvs: php4 /ext/session mod_files.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-717@lists.php.net to get a copy of this message | ||
sas Tue Jul 11 05:29:19 2000 EDT
Modified files:
/php4/ext/session mod_files.c
Log:
Always use the current DIR_DELIMITER to create the session file path
Index: php4/ext/session/mod_files.c
diff -u php4/ext/session/mod_files.c:1.38 php4/ext/session/mod_files.c:1.39
--- php4/ext/session/mod_files.c:1.38 Mon Jul 10 03:09:14 2000
+++ php4/ext/session/mod_files.c Tue Jul 11 05:29:19 2000
@@ -98,7 +98,7 @@
(strlen(data->basedir) + 2 * data->dirdepth + keylen + 5 + sizeof(FILE_PREFIX)))
return NULL;
p = key;
- n = sprintf(buf, "%s/", data->basedir);
+ n = sprintf(buf, "%s%c", data->basedir, DIR_DELIMITER);
for (i = 0; i < data->dirdepth; i++) {
buf[n++] = *p++;
buf[n++] = DIR_DELIMITER;