Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Sep 2011 at 16:01 UTC
Updated:
4 Jan 2014 at 01:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
darrell_ulm commentedOK, here is patch.
Attached and produced what is below. If anything is odd, let me know so I can correct.
Comment #2
Niklas Fiekas commentedWell done, this fixes the problem. Only this way the signature format is ignored. Try using "Filtered HTML" in your signature and look at the result.
I'll also write a test now.
Comment #3
Niklas Fiekas commentedOk. Here's the test. We're expecting that to fail.
Also, with your starting point, it wasn't hard to improve the fix. We're expecting the combined patch to pass.
Comment #4
bleen commentedThis is a fairly minor point, but we usually use $this->randomName(8) for text like this and then we test for that random string later. This garuntees that we dont find the string "Test Signature" somewhere else on the page for some (unlikely) reason.
Just make sure you set a variable with the random string so you have something to assert later....
-22 days to next Drupal core point release.
Comment #5
Niklas Fiekas commentedOk, thanks for reviewing. Here's a reroll with randomName() instead of that magic string.
Comment #6
darrell_ulm commentedNiklas,
Thank you. Yep, you make a good point. Want to get back to this when I have a sec.
Comment #7
darrell_ulm commentedNiklas, Cool, way to go!
Comment #8
darrell_ulm commentedPatch applies & tests OK.
-Darrell
Comment #9
darrell_ulm commentedTested this, I needed to change the status to "reviewed & tested by the community."
Comment #10
catchMakes sense. Committed/pushed to 8.x, moving to 7.x for backport.
Comment #11
Niklas Fiekas commentedThanks. Here is a cherry-picked backport.
Comment #12
darrell_ulm commentedTested 7.x backport. Patch applied and working.
darrellulm
Comment #13
webchickHm. I guess there's a small chance this could break themes that aren't expecting it, but OTOH this feels like a straight-up bug fix.
Committed and pushed to 7.x. Thanks!
Comment #14
darrell_ulm commentedCool. Thanks for the assist @Niklas Fiekas + 1