Needs work
Project:
Drupal core
Version:
main
Component:
markup
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 May 2019 at 16:58 UTC
Updated:
27 Mar 2023 at 18:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
plamen.penev commentedComment #3
plamen.penev commentedComment #4
john cook commentedHi @Plamen.Penev.
Thank you for logging and working on this issue.
Before this can be RTBCed a test will need to be created to show that there is a bug, the bug can be reproduced, and that the patch fixes the bug. The tests are usually submitted as a separate patch so it can shown to fail without the patch. So I'm setting back to 'needs work'.
I have concerns about how the solution has been implemented. It appears that the sanitization functions could be bypassed. Because of this I've added the "needs security review" tag. The security team will need to state if the patch can be accepted as is.
Comment #11
nikhil_110 commentedAttached patch against Drupal 9.5.x
Comment #12
gauravvvv commentedRe-rolled patch #2, for 9.5.x. Patch #2 no longer applies to 9.5.x. Not attaching interdiff as no patch is applying to 9.5
Comment #13
ameymudras commentedWould be really helpful if we can have testing steps in the description. Couple of suggestions after code review:
1. we can make use of isset instead of array_key_exists since its faster
if (is_array($text) && isset($text['#markup'])) {2. The following comment needs to be better worded
// Handle strings that are passed in array as value in the #markup key.Comment #16
rpayanmI applied the suggestions please review.
Comment #17
smustgrave commentedThe issue summary should be updated to include the problem, proposed solution, and remaining tasks
Title also should be updated to show the problem not the ticket number.
Also needs test coverage.
Comment #18
rpayanmUps, sorry.