Changeset 2475285
- Timestamp:
- 02/16/2021 06:08:37 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external-media/trunk/includes/WP_ExternalPluginBase.php
r2475134 r2475285 288 288 */ 289 289 protected function isUnsafe( $filename, $extensions ) { 290 if (preg_match('/\.(php|ph ar|pl|py|cgi|asp|js|html|htm|xml)(\.|$)/i', $filename)) {290 if (preg_match('/\.(php|php2|php3|php4|php5|php6|php7|php8|phtml|phar|pl|py|cgi|asp|js|html|htm|xml)(\.|$)/i', $filename)) { 291 291 $regex = '/\.(' . preg_replace('/ +/', '|', preg_quote($extensions)) . ')$/i'; 292 292 if (!preg_match($regex, $filename)) {
Note: See TracChangeset
for help on using the changeset viewer.