- Fixed: Vulnerability with timestamp field on UM Forms

- changed readme;
This commit is contained in:
nikitasinelnikov
2020-12-04 00:10:20 +02:00
parent a222a3a508
commit 67420b11b0
8 changed files with 16 additions and 10 deletions
+1 -3
View File
@@ -81,9 +81,7 @@ if ( ! class_exists( 'um\core\GDPR' ) ) {
*/
function email_registration_data( $submitted ) {
if ( ! empty( $submitted['use_gdpr_agreement'] ) ) {
$timestamp = ! empty( $submitted['timestamp'] ) ? $submitted['timestamp'] : $submitted['use_gdpr_agreement'];
$submitted['GDPR Applied'] = date( "d M Y H:i", $timestamp );
$submitted['GDPR Applied'] = date( "d M Y H:i", $submitted['use_gdpr_agreement'] );
unset( $submitted['use_gdpr_agreement'] );
}