We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3db27e commit 17a0c4dCopy full SHA for 17a0c4d
source/CAS/PGTStorage/File.php
@@ -127,6 +127,12 @@ function __construct($cas_parent,$path)
127
if (!preg_match('`^[a-zA-Z]:`', $path)) {
128
phpCAS::error('an absolute path is needed for PGT storage to file');
129
}
130
+
131
+ // ensure that the directory separator on Windows is '/' for consistency with the rest of the phpcas code
132
+ $path = str_replace(DIRECTORY_SEPARATOR , '/', $path);
133
134
+ // store the path (with a trailing '/')
135
+ $path = preg_replace('|([^/])$|', '$1/', $path);
136
137
} else {
138
0 commit comments