Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 551b23e

Browse files
authored
Trim posted email address
1 parent 062fc3e commit 551b23e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎action.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
if ( ! is_null($post_action)) {
66
switch ($post_action) {
77
case 'add':
8-
$address = isset($_POST['email']) && ! empty($_POST['email']) ? $_POST['email'] : null;
8+
$address = isset($_POST['email']) ? trim($_POST['email']) : '';
9+
$address = ! empty($address) ? $address : null;
10+
911
if ( ! is_null($address)) {
1012
add_email($address);
1113
} else {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /