Commit b3cb4f0d authored by Steven Wittens's avatar Steven Wittens

#56346: XHTML validation error due to comment.module links

parent bbf695fb
......@@ -1588,10 +1588,10 @@ function theme_comment_post_forbidden($nid) {
}
if (variable_get('user_register', 1)) {
return t('<a href="%login">login</a> or <a href="%register">register</a> to post comments', array('%login' => url('user/login', $destination), '%register' => url('user/register', $destination)));
return t('<a href="%login">login</a> or <a href="%register">register</a> to post comments', array('%login' => url('user/login', $destination), '%register' => check_url(url('user/register', $destination))));
}
else {
return t('<a href="%login">login</a> to post comments', array('%login' => url('user/login', $destination)));
return t('<a href="%login">login</a> to post comments', array('%login' => check_url(url('user/login', $destination))));
}
}
}
......
......@@ -1588,10 +1588,10 @@ function theme_comment_post_forbidden($nid) {
}
if (variable_get('user_register', 1)) {
return t('<a href="%login">login</a> or <a href="%register">register</a> to post comments', array('%login' => url('user/login', $destination), '%register' => url('user/register', $destination)));
return t('<a href="%login">login</a> or <a href="%register">register</a> to post comments', array('%login' => url('user/login', $destination), '%register' => check_url(url('user/register', $destination))));
}
else {
return t('<a href="%login">login</a> to post comments', array('%login' => url('user/login', $destination)));
return t('<a href="%login">login</a> to post comments', array('%login' => check_url(url('user/login', $destination))));
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment