Skip to content

Commit 4a0df02

Browse files
authored
Merge pull request #177 from wp-blocks/0.7.4b
Refine value check: trim strings before validating emptiness
2 parents 7f40407 + ce650d7 commit 4a0df02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/CF7_AntiSpam_Filters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ private function create_message_from_posted_data( ?array $posted_data ): string
13561356
}
13571357

13581358
// Skip empty values or non-string values
1359-
if ( empty( $value ) || ! is_string( $value ) ) {
1359+
if ( ! is_string( $value ) || empty( trim( $value ) ) ) {
13601360
continue;
13611361
}
13621362

0 commit comments

Comments
 (0)