diff options
| author | 2022-12-08 10:25:57 +0100 | |
|---|---|---|
| committer | 2022-12-08 11:33:08 +0100 | |
| commit | 62afc060a849f75f8a2ffae68bf1a81bc3226707 (patch) | |
| tree | 5d53d83092a417d1dc5067e34ee56ca43645da74 | |
| parent | b835c426d4d8baf17cb8cc4d016944603376cc99 (diff) | |
Security fix in ext.php (#4928)
Details later.
Due to https://github.com/FreshRSS/FreshRSS/pull/3433 (1.18.0)
| -rw-r--r-- | p/ext.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -101,7 +101,8 @@ if (!isset($_GET['f']) || $file_name = urldecode($_GET['f']); $file_type = $_GET['t']; -if (empty(SUPPORTED_TYPES[$file_type])) { +if (empty(SUPPORTED_TYPES[$file_type]) || + empty(SUPPORTED_TYPES[pathinfo($file_name, PATHINFO_EXTENSION)])) { sendBadRequestResponse('File type is not supported.'); } |
