Skip to content
Snippets Groups Projects
Commit d35b1eb3 authored by Ere Maijala's avatar Ere Maijala Committed by Robert Lange
Browse files

Output nonce properly from asset pipeline.

parent 32394651
Branches
Tags
No related merge requests found
......@@ -76,7 +76,7 @@ trait ConcatTrait
* @param stdClass $item Element object
* @param string $path New path string
*
* @return void
* @return stdClass
*/
abstract protected function setResourceFilePath($item, $path);
......@@ -364,6 +364,7 @@ trait ConcatTrait
// files, which are stored in a theme-independent cache).
$path = $this->getConcatenatedFilePath($group);
$item = $this->setResourceFilePath($group['items'][0], $path);
$item->attributes['nonce'] = $this->cspNonce;
$output[] = parent::itemToString(
$item, $indent, $escapeStart, $escapeEnd
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment