File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,10 @@ public function sanitizePathString(string $path): string
98
98
public function validate (): void
99
99
{
100
100
if (! (
101
- str_starts_with ($ this ->path , Hyde::pathToRelative (Hyde::getDocumentationPagePath ())) ||
102
- str_starts_with ($ this ->path , Hyde::pathToRelative (Hyde::getMarkdownPostPath ())) ||
103
101
str_starts_with ($ this ->path , Hyde::pathToRelative (Hyde::getBladePagePath ())) ||
104
- str_starts_with ($ this ->path , Hyde::pathToRelative (Hyde::getMarkdownPostPath ()))
102
+ str_starts_with ($ this ->path , Hyde::pathToRelative (Hyde::getMarkdownPagePath ())) ||
103
+ str_starts_with ($ this ->path , Hyde::pathToRelative (Hyde::getMarkdownPostPath ())) ||
104
+ str_starts_with ($ this ->path , Hyde::pathToRelative (Hyde::getDocumentationPagePath ()))
105
105
)) {
106
106
throw new Exception ("Path [ $ this ->path ] is not in a valid source directory. " , 400 );
107
107
}
You can’t perform that action at this time.
0 commit comments