In cart.module, line 380:

drupal_set_message(t('Login or <a href="%reg-link">register</a> to continue the checkout process', array('%reg-link' => url('user/register', drupal_get_destination()))));

Uses the "%" token which causes the href value to have an "" tag wrapping it.

It should use the "!" token.

I attached a patch.

CommentFileSizeAuthor
cart-register-link-fix.patch783 bytesjbjaaz

Comments

jbjaaz’s picture

Uses the "%" token which causes the href value to have an "" tag wrapping it.

Stripped out an html tag. It should read "...to have an "em" tag wrapping..."

brmassa’s picture

Status: Active » Needs review
gordon’s picture

Version: 5.x-3.0 » 5.x-4.x-dev
Status: Needs review » Fixed

Fixed in v4

gordon’s picture

Version: 5.x-4.x-dev » 5.x-3.x-dev
Status: Fixed » Patch (to be ported)

commit http://drupal.org/cvs?commit=66799 needs to be backported to v3

sethcohn’s picture

Status: Patch (to be ported) » Needs review

there is actually a second example of this a few lines down in the code...

Perhaps the entire codebase can be checked for the incorrect % (which should be !), this is far from the only case of it.

sethcohn’s picture

Actually, as long as we're reviewing it... it seems the usecase here is reversed:

it's FAR MORE likely that those not logged in will need to create an account, not simply login.
Changing the location the anonymous user is sent from /user to /user/register
(and then linking to /user for the Login part of the text) makes _far_ more sense.
I've patched this for my own use, and I think it's likely to be more useful this way to others as well.
If others agree, I'll post the patch (which is otherwise pretty trivial)

brmassa’s picture

Status: Needs review » Patch (to be ported)

All EC4 code checked and fixed

gordon’s picture

Status: Patch (to be ported) » Fixed

I have ported this already to 5.x-3.x-dev

Anonymous’s picture

Status: Fixed » Closed (fixed)