Skip to content

Commit a0c0c1a

Browse files
committed
Merge branch 'release/2.2.1'
2 parents aa0045a + ffe5863 commit a0c0c1a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v2.2.1
2+
## 03/21/2025
3+
4+
1. [](#bugfix)
5+
* Fix path check on windows [#44](https://github.com/getgrav/grav-plugin-problems/pull/44)
6+
17
# v2.2.0
28
## 03/20/2025
39

blueprints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Problems
22
slug: problems
33
type: plugin
4-
version: 2.2.0
4+
version: 2.2.1
55
description: Detects and reports problems found in the site.
66
icon: exclamation-circle
77
author:

classes/Problems/EssentialFolders.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function process()
5151

5252
foreach ($essential_folders as $file => $check_writable) {
5353
$file_path = (!preg_match('`^(/|[a-z]:[\\\/])`ui', $file) ? GRAV_ROOT . '/' : '') . $file;
54-
$file_path = preg_replace('`^/*`', '/', $file_path);
54+
$file_path = preg_replace('`^/+`', '/', $file_path);
5555

5656
if (!is_dir($file_path)) {
5757
$file_errors[$file_path] = 'does not exist';

0 commit comments

Comments
 (0)