There are 9 calls to l() across 6 files that add parameters incorrectly. If you pass an html attribute in the $options array without putting it in attributes =>array() the html attribute will be ignored by l().

For example, theme.inc calls:

l($name, 'user/'. $object->uid, array('title' => t('View user profile.')))

But that should be:

l($name, 'user/'. $object->uid, array('attributes' => array('title' => t('View user profile.'))))

The other calls are similarly incorrect.

Comments

johnalbin’s picture

Version: 6.x-dev » 7.x-dev
StatusFileSize
new6.46 KB

To get more eyeballs, updated patch for D7.

mikey_p’s picture

Status: Needs review » Needs work
patching file includes/theme.inc
Hunk #1 FAILED at 1552.
1 out of 2 hunks FAILED -- saving rejects to file includes/theme.inc.rej
patching file modules/blog/blog.module
patching file modules/comment/comment.admin.inc
Hunk #1 FAILED at 64.
1 out of 1 hunk FAILED -- saving rejects to file modules/comment/comment.admin.inc.rej
patching file modules/node/node.module
Hunk #1 FAILED at 135.
1 out of 1 hunk FAILED -- saving rejects to file modules/node/node.module.rej
johnalbin’s picture

Status: Needs work » Needs review
StatusFileSize
new6.47 KB

Thanks for the review, Michael!

I should have checked the patch before asking for reviews on IRC. The code style change for concatenation broke the patch. Doh!

Re-rolled.

mikey_p’s picture

Status: Needs review » Reviewed & tested by the community

Tested, and reviewed the code, straightforward.

dries’s picture

Version: 7.x-dev » 6.x-dev

Good catch. Committed to CVS HEAD. Seems like it is easy to make mistakes ... wonder if we can do something about that.

Changing version to Drupal 6 for Gabor to review.

johnalbin’s picture

StatusFileSize
new6.03 KB

#229817: Wrong use of l function in theme_username broke the DRUPAL-6 version of this patch. Just had to remove one section from the patch to get it working.

dries’s picture

Good catch. Committed to CVS HEAD. Seems like it is easy to make mistakes ... wonder if we can do something about that.

Changing version to Drupal 6 for Gabor to review.

johnalbin’s picture

StatusFileSize
new5.29 KB

#258120: Homepage links by unverified users do not properly have rel="nofollow" set was a dupe of this, but got committed.

Re-rolling again.

Please commit before we get one-off patches for each of the other 7 broken l() calls. ;-)

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed to Drupal 6!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.