New issue 811 by lpersichetti: Login from comments
http://code.google.com/p/kaytwo/issues/detail?id=811
What steps will reproduce the problem?
When you log in from comments in the comment.php file line 85 the login
link is generated using the get_permalink() function:
printf(__('You must <a href="%s">login</a> to post a
comment.','k2_domain'), get_option('siteurl') .
'/wp-login.php?redirect_to=' . get_permalink());
this generate the correct link, but specials HTML entities are not escaped
in the correct way.
This lead to:
- 406 errors with providers having strict security settings;
- the generation of HTML code not compliant with W3 standards.
What is the expected output? What do you see instead?
HML link with special characters escaped in the correct way.
Please use labels and text to provide additional information.
I was able to solve the problem simply changing the give line with this one:
printf(__('You must <a href="%s">login</a> to post a
comment.','k2_domain'), get_option('siteurl') .
'/wp-login.php?redirect_to=' . htmlentities(urlencode(get_permalink())));
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings