We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e5a9cb commit 01d0b6cCopy full SHA for 01d0b6c
1 file changed
system/Common.php
@@ -90,7 +90,11 @@ function cache(?string $key = null)
90
function clean_path(string $path): string
91
{
92
// Resolve relative paths
93
- $path = realpath($path) ?: $path;
+ try {
94
+ $path = realpath($path) ?: $path;
95
+ } catch (ErrorException|ValueError $e) {
96
+ $path = 'error file path: ' . urlencode($path);
97
+ }
98
99
switch (true) {
100
case strpos($path, APPPATH) === 0:
0 commit comments