We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 458bb14 commit 5d9637eCopy full SHA for 5d9637e
src/Tracy/Bar/Bar.php
@@ -185,7 +185,7 @@ public function dispatchAssets(): bool
185
header('X-Tracy-Ajax: 1'); // session must be already locked
186
}
187
188
- if ($this->useSession && $asset && preg_match('#^content(-ajax)?\.(\w+)$#', $asset, $m)) {
+ if ($this->useSession && is_string($asset) && preg_match('#^content(-ajax)?\.(\w+)$#', $asset, $m)) {
189
$session = &$_SESSION['_tracy']['bar'][$m[2]];
190
header('Content-Type: application/javascript; charset=UTF-8');
191
header('Cache-Control: max-age=60');
0 commit comments