diff --git a/html/user/validate_email_addr.php b/html/user/validate_email_addr.php
index 0b80dc98d7..2c51fa644f 100644
--- a/html/user/validate_email_addr.php
+++ b/html/user/validate_email_addr.php
@@ -59,7 +59,7 @@ function validate() {
page_tail();
}
-if ($_GET['validate']) {
+if (get_str('validate', true)) {
validate();
} else {
send_validate_email();