Problem/Motivation

Using Honeypot, the added field id attribute leaks to its wrapper div causing an ID duplication.

Steps to reproduce

  1. Install Drupal and Honeypot
  2. Go to a page where a protected form is
  3. In the source code, search for id="edit-url"

Expected: only one occurence
Current: two occurences

Proposed resolution

For the div to have a 'null' id to avoid that parameter leaking.

Remaining tasks

Patch, Review, Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DuaelFr created an issue. See original summary.

DuaelFr’s picture

Assigned: DuaelFr » Unassigned
Status: Active » Needs review
FileSize
409 bytes
DuaelFr’s picture

Status: Needs review » Needs work

It seems that it does not work...

DuaelFr’s picture

Status: Needs work » Needs review
FileSize
426 bytes
469 bytes

OK! I got it!

geerlingguy’s picture

Status: Needs review » Postponed (maintainer needs more info)

@DuaelFr - Thanks for the patch! Can you provide a few steps I can run through to verify the problem, then make sure the patch fixes it? (e.g. 1. Visit a page with a honeypot field in a form. 2. View source and search for "xyz" 3. Note that a div two levels up has the same ID) — that helps me not have to dig around for the context so I can review the patch more quickly. Thanks!

DuaelFr’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Needs review

Thank you for your quick answer :)
I updated the IS with steps to reproduce.

geerlingguy’s picture

Checking it out today. Thanks!

geerlingguy’s picture

Status: Needs review » Reviewed & tested by the community

Confirmed the bug, and tested the fix. Thanks!

geerlingguy’s picture

Status: Reviewed & tested by the community » Fixed
DuaelFr’s picture

Thanks :)

Status: Fixed » Closed (fixed)

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