Issue #2863652 by alexpott, anmolgoyal74, javi.pl, dww, zaporylie, moinak_dutta, iampuma, a.dmitriiev, benjifisher, Pancho, larowlan, yoroy: Do not allow files with "php|pl|py|cgi|asp|js" extensions to be renamed to *.txt and be uploaded if *.txt is not allowed by the field widget
2021-01-22 23:16:07 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Post update functions for File.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2022-02-08 12:16:18 +00:00
|
|
|
* Implements hook_removed_post_updates().
|
Issue #2863652 by alexpott, anmolgoyal74, javi.pl, dww, zaporylie, moinak_dutta, iampuma, a.dmitriiev, benjifisher, Pancho, larowlan, yoroy: Do not allow files with "php|pl|py|cgi|asp|js" extensions to be renamed to *.txt and be uploaded if *.txt is not allowed by the field widget
2021-01-22 23:16:07 +00:00
|
|
|
*/
|
2022-02-08 12:16:18 +00:00
|
|
|
function file_removed_post_updates() {
|
|
|
|
return [
|
|
|
|
'file_post_update_add_txt_if_allows_insecure_extensions' => '10.0.0',
|
|
|
|
];
|
Issue #2863652 by alexpott, anmolgoyal74, javi.pl, dww, zaporylie, moinak_dutta, iampuma, a.dmitriiev, benjifisher, Pancho, larowlan, yoroy: Do not allow files with "php|pl|py|cgi|asp|js" extensions to be renamed to *.txt and be uploaded if *.txt is not allowed by the field widget
2021-01-22 23:16:07 +00:00
|
|
|
}
|