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

4.7.x
Steven Wittens 2006-03-30 17:23:29 +00:00
parent bbf695fb04
commit b3cb4f0d9b
2 changed files with 4 additions and 4 deletions

View File

@ -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))));
}
}
}

View File

@ -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))));
}
}
}