| 1 | 16,19c16,19 |
|---|
| 2 | < $comment_author = $_POST['author']; |
|---|
| 3 | < $comment_author_email = $_POST['email']; |
|---|
| 4 | < $comment_author_url = $_POST['url']; |
|---|
| 5 | < $comment_content = $_POST['comment']; |
|---|
| 6 | --- |
|---|
| 7 | > $comment_author = trim($_POST['author']); |
|---|
| 8 | > $comment_author_email = trim($_POST['email']); |
|---|
| 9 | > $comment_author_url = trim($_POST['url']); |
|---|
| 10 | > $comment_content = trim($_POST['comment']); |
|---|
| 11 | 34c34,40 |
|---|
| 12 | < if ( get_settings('require_name_email') && ('' == $comment_author_email || '' == $comment_author) ) |
|---|
| 13 | --- |
|---|
| 14 | > //shortest valid mail has 3 chars a@a |
|---|
| 15 | > //there must be an @ and it cant be the first char |
|---|
| 16 | > |
|---|
| 17 | > if ( get_settings('require_name_email') && ( |
|---|
| 18 | > strlen ($comment_author_email) < 3 || |
|---|
| 19 | > strpos ($comment_author_email, "@") < 2 || |
|---|
| 20 | > '' == $comment_author) ) |
|---|
| 21 | 57c63 |
|---|
| 22 | < ?> |
|---|
| 23 | \ No newline at end of file |
|---|
| 24 | --- |
|---|
| 25 | > ?> |
|---|