We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5192dbc commit c6e9894Copy full SHA for c6e9894
server/lib/classes/system.inc.php
@@ -851,7 +851,7 @@ function checkpath($path) {
851
852
//* We allow only some characters in the path
853
// * is allowed, for example it is part of wildcard certificates/keys: *.example.com.crt
854
- if(!preg_match('@^/[-a-zA-Z0-9_/.*~]{1,}$@', $path)) return false;
+ if(!preg_match('@^/[-a-zA-Z0-9_/.*]{1,}[~]?$@', $path)) return false;
855
856
//* Check path for symlinks
857
$path_parts = explode('/', $path);
0 commit comments