Hey Kirbyists,
I’ve noticed a strange behavior when I’m var_dump’ing in my templates, for example
$list = $page->children()->visible()->sortBy('date', 'desc', 'time', 'desc')->paginate(7);
var_dump( $list );
Just barfs out everything including all sorts of sensitive informations about the entire site, instead of just its scope
object(Children)[143]
protected 'page' =>
object(Page)[72]
public 'kirby' =>
object(******)[6]
public 'roots' =>
object(Kirby\Roots)[7]
public 'index' => string '******' (length=12)
public 'site' => string '******' (length=43)
public 'content' => string '******' (length=46)
public 'avatars' => string '******' (length=53)
public 'thumbs' => string '******' (length=45)
public 'urls' =>
object(Kirby\Urls)[8]
public 'index' => string '******' (length=26)
public 'content' => string '******' (length=34)
public 'avatars' => string '******' (length=41)
public 'thumbs' => string '******' (length=33)
public 'cache' =>
object(Cache\Driver\Mock)[15]
protected 'options' =>
array (size=0)
empty
public 'path' => string '******' (length=7)
public 'options' =>
array (size=64)
'url' => boolean false
'timezone' => string 'Europe/Copenhagen' (length=17)
'license' => string '******' (length=39)
'rewrite' => boolean true
'error' => string '******' (length=5)
'home' => string '******' (length=7)
'locale' => string 'en_US.UTF8' (length=10)
'routes' =>
...
I think a couple of thousands of lines gets puked out from this, I can’t even find what I’m looking for.
As far as I remember from another CMS, this can happen when something leaks out or is this really just the default behavior of Kirby ?