Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nette/application
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 07d4ebb73337cb970b4924868f3076653fa756d2
Choose a base ref
..
head repository: nette/application
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 337c67ca4fccda215f3d927cec05b0cb58e83492
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Bridges/ApplicationLatte/TemplateFactory.php
2 changes: 1 addition & 1 deletion src/Bridges/ApplicationLatte/TemplateFactory.php
Original file line number Diff line number Diff line change
@@ -117,7 +117,7 @@ public function createTemplate(UI\Control $control = NULL)
$latte->addProvider('uiControl', $control);
$latte->addProvider('uiPresenter', $presenter);
$latte->addProvider('snippetBridge', new Nette\Bridges\ApplicationLatte\SnippetBridge($control));
$nonce = preg_match('#\s\'nonce-([\w+/]+=*)\'#', $presenter->getHttpResponse()->getHeader('Content-Security-Policy'), $m) ? $m[1] : NULL;
$nonce = preg_match('#\s\'nonce-([\w+/]+=*)\'#', (string) $presenter->getHttpResponse()->getHeader('Content-Security-Policy'), $m) ? $m[1] : NULL;
$latte->addProvider('uiNonce', $nonce);
}
$latte->addProvider('cacheStorage', $this->cacheStorage);