diff options
| author | 2019-04-07 14:27:46 +0200 | |
|---|---|---|
| committer | 2019-04-07 14:27:46 +0200 | |
| commit | d008b6c1a7488b99e77287ba14f1fff3ec1a116b (patch) | |
| tree | a0c68e175e36af10e9602e555bf794a90d66be7c /p/ext.php | |
| parent | d413f67dd28738f4a6d8cf036e00714737f757b8 (diff) | |
| parent | 0eb535e3ac9269d39d2ea7856c4c5532c3296a55 (diff) | |
Merge pull request #2338 from FreshRSS/dev1.14.1
FreshRSS 1.14.1
Diffstat (limited to 'p/ext.php')
| -rw-r--r-- | p/ext.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -20,6 +20,11 @@ require(__DIR__ . '/../constants.php'); function is_valid_path($path) { // It must be under the extension path. $real_ext_path = realpath(EXTENSIONS_PATH); + + //Windows compatibility + $real_ext_path = str_replace('\\', '/', $real_ext_path); + $path = str_replace('\\', '/', $path); + $in_ext_path = (substr($path, 0, strlen($real_ext_path)) === $real_ext_path); if (!$in_ext_path) { return false; |
