/home/techb158/l2hypotheques.com/wp-content/plugins/contact-form-7/includes/swv/php/rules
NameSizeModeActions
all.php5880644editdlrm
any.php5030644editdlrm
date.php6200644editdlrm
dayofweek.php10460644editdlrm
email.php6230644editdlrm
enum.php11140644editdlrm
file.php12780644editdlrm
maxdate.php7580644editdlrm
maxfilesize.php6760644editdlrm
maxitems.php7210644editdlrm
maxlength.php8020644editdlrm
maxnumber.php7820644editdlrm
mindate.php7580644editdlrm
minfilesize.php6760644editdlrm
minitems.php7210644editdlrm
minlength.php8020644editdlrm
minnumber.php7820644editdlrm
number.php6260644editdlrm
required.php5860644editdlrm
requiredfile.php5650644editdlrm
stepnumber.php9530644editdlrm
tel.php6170644editdlrm
time.php6200644editdlrm
url.php6170644editdlrm
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/contact-form-7/includes/swv/php/rules/file.php (1278B)
get_default_upload()->name ?? ''; $input = wpcf7_array_flatten( $input ); $input = wpcf7_exclude_blank( $input ); $acceptable_filetypes = array(); foreach ( (array) $this->get_property( 'accept' ) as $accept ) { if ( preg_match( '/^\.[a-z0-9]+$/i', $accept ) ) { $acceptable_filetypes[] = strtolower( $accept ); } else { foreach ( wpcf7_convert_mime_to_ext( $accept ) as $ext ) { $acceptable_filetypes[] = sprintf( '.%s', strtolower( trim( $ext, ' .' ) ) ); } } } $acceptable_filetypes = array_unique( $acceptable_filetypes ); foreach ( $input as $i ) { $last_period_pos = strrpos( $i, '.' ); if ( false === $last_period_pos ) { // no period return $this->create_error(); } $suffix = strtolower( substr( $i, $last_period_pos ) ); if ( ! in_array( $suffix, $acceptable_filetypes, true ) ) { return $this->create_error(); } } return true; } }