Changes between Initial Version and Version 1 of Ticket #50136, comment 2
- Timestamp:
- 05/10/2020 02:02:21 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #50136, comment 2
initial v1 3 3 `strpos( $ext_pattern, $ext ) !== false` <- This should block `tx` and `tx*` file extensions if `tx` in in the allow-list. Not the other way around that `txt` is allowed when `tx` is in the allow-list. 4 4 5 However, I think we probably should improve the `strpos` call to allow case sensitivity and check with proper word boundaries to make the comparison more strict.5 However, I think we probably should improve the `strpos` call to allow case insensitivity and check with proper word boundaries to make the comparison more strict. 6 6 7 7 `!preg_match('/\b' . preg_quote($ext, '/') . '\b/i')` would be a better check.