A free, self-hostable news aggregator…
Fix for extensions on Windows (#2348)
Alexandre Alapetite74f92658b71e
diff --git a/p/ext.php b/p/ext.phpindex 427bdc253..1b123f47d 100644--- a/p/ext.php+++ b/p/ext.php@@ -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;