Skip to content

Commit

Permalink
Disable access paths for iffy context
Browse files Browse the repository at this point in the history
  • Loading branch information
jnvsor committed Aug 16, 2017
1 parent 89a02fe commit ef20ab7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Kint_TwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public function dump($mode, Twig_Environment $env, array $context, array $args =
Kint::$enabled_mode = $mode;
Kint::$return = true;
Kint::$display_called_from = false;
$apstash = Kint_Renderer_Rich::$access_paths;
Kint_Renderer_Rich::$access_paths = false;

if ($args) {
$out = call_user_func_array(array('Kint', 'dump'), $args);
Expand All @@ -54,6 +56,7 @@ public function dump($mode, Twig_Environment $env, array $context, array $args =
}

Kint::settings($stash);
Kint_Renderer_Rich::$access_paths = $apstash;

return $out;
}
Expand Down

0 comments on commit ef20ab7

Please sign in to comment.