mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Added option to ignore parent page ACL
This commit is contained in:
parent
6f38933e81
commit
508cf1ffdb
|
|
@ -9,6 +9,7 @@
|
|||
1. [](#bugfix)
|
||||
* Grav 1.7: Fixed error on page initialization [#2753](https://github.com/getgrav/grav/issues/2753)
|
||||
* Fixed checking ACL for another user (who is not currently logged in) in a Flex Object or Directory
|
||||
* Fixed bug in Windows where `Filesystem::dirname()` returns backslashes
|
||||
|
||||
# v1.7.0-rc.2
|
||||
## 12/04/2019
|
||||
|
|
|
|||
|
|
@ -176,6 +176,11 @@ class Filesystem implements FilesystemInterface
|
|||
return [$scheme, ''];
|
||||
}
|
||||
|
||||
// In Windows dirname() may return backslashes, fix that.
|
||||
if (DIRECTORY_SEPARATOR !== '/') {
|
||||
$path = str_replace('\\', '/', $path);
|
||||
}
|
||||
|
||||
return [$scheme, $path];
|
||||
}
|
||||
|
||||
|
|
@ -199,6 +204,11 @@ class Filesystem implements FilesystemInterface
|
|||
$dirname = isset($info['dirname']) && $info['dirname'] !== '.' ? $info['dirname'] : null;
|
||||
|
||||
if (null !== $dirname) {
|
||||
// In Windows dirname may be using backslashes, fix that.
|
||||
if (DIRECTORY_SEPARATOR !== '/') {
|
||||
$dirname = str_replace('\\', '/', $dirname);
|
||||
}
|
||||
|
||||
$info['dirname'] = $scheme . '://' . $dirname;
|
||||
} else {
|
||||
$info = ['dirname' => $scheme . '://'] + $info;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user