Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
theme system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Jun 2015 at 17:58 UTC
Updated:
24 Jul 2015 at 14:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
lokapujyaComment #5
lokapujyaWon't have time for a couple days.
Comment #7
joelpittetNo worries, these failures seem to be prove that this SafeMarkup::set() isn't really safe.
Either: $values and/or $rendered_field are not safe going in. May need to escape them before.
Comment #8
xjmWrong parent issue I think. :)
Comment #9
yesct commentedLooked up replace to better understand what @joelpittet said in #7
So, I'm going to just try some things. :)
Comment #13
yesct commentedSo.
some fails were:
Drupal\action\Tests\ActionUninstallTest 13 0 12
Message Group Filename Line Function Status
Array to string conversion Notice SafeMarkup.php 94 Drupal\Component\Utility\SafeMarkup::isSafe()
so I guess we need to escape each string that could be in the arrays.
... but why are the placeholders and the values the same?
Comment #14
yesct commentedoh, they are not, one is the array values and the other is the array keys. :)
here is a try at escaping all of both.
--
xjm also suggested
this might be a ok to use SafeMarkup::set(), because in theory it's behind a Views admin permission
stepping through it in a debugger could be helpful though time-consuming
[edit: oops. that interdiff should have ended in .txt so it would not have been sent to the testbot. oops.]
Comment #17
yesct commentedas this is views specific, adding a tag for that.
Comment #18
alexpottThis SafeMarkup::set() is removed as part of #2506581: Remove SafeMarkup::set() from Renderer::doRender - it is still mark the content here as safe but in a different way. I think everything here should be already safe because it has come from the render system already.
Comment #19
wim leers#18: so should we close this as a duplicate then? Or postpone it until the other lands and then re-evaluate?
Comment #20
joelpittetPostpone for now, and close as duplicate if and when that lands. If not, re-open:)
Before closing, make sure this has been resolved please.
#2506581: Remove SafeMarkup::set() from Renderer::doRender
Comment #21
lauriiiUnpostponing
Comment #22
cilefen commentedSafeMarkup::set was removed from this class in #2506581: Remove SafeMarkup::set() from Renderer::doRender.