Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Debugger: iframe ajax detected using GET variable ajax

  • Loading branch information...
commit 6f9b7b1ed187c8cc594329f0499692f7fbcacf04 1 parent 119096d
@juzna authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Nette/Diagnostics/Debugger.php
View
2  Nette/Diagnostics/Debugger.php
@@ -164,7 +164,7 @@ public static function _init()
if (self::$consoleMode) {
self::$source = empty($_SERVER['argv']) ? 'cli' : 'cli: ' . implode(' ', $_SERVER['argv']);
} else {
- self::$ajaxDetected = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest';
+ self::$ajaxDetected = !empty($_GET['ajax']) || (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest');
if (isset($_SERVER['REQUEST_URI'])) {
self::$source = (isset($_SERVER['HTTPS']) && strcasecmp($_SERVER['HTTPS'], 'off') ? 'https://' : 'http://')
. (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : ''))
Please sign in to comment.
Something went wrong with that request. Please try again.