Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit d9f057d

Browse files
committed
Fix is ajax check in event
1 parent 39580ae commit d9f057d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ggrachdev.debugbar/classes/general/BitrixDebugger/Events/OnEndBufferContent.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ public function addDebugBar(&$content) {
2121
$APPLICATION->GetProperty("save_kernel") == "Y" ||
2222
!\is_object($USER) ||
2323
!$USER->IsAdmin() ||
24-
$request->isAjaxRequest()
24+
$request->isAjaxRequest() ||
25+
(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest')
2526
) {
2627
return;
2728
}

0 commit comments

Comments
 (0)