😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, logging, profiler, advanced features like debugging AJAX calls or CLI support. You will love it.
When Latte StringLoader is used and open_basedir is set, the editorUri() method passes the html string to the is_file() function.
This causes the following exception: Error: _Latte\Bridges\Tracy\LattePanel-2
ErrorException: is_file(): openbasedir restriction in effect. File(<div>html example</div>) is not within the allowed path(s)...
Steps To Reproduce
Simply set up open_basedir, use StringLoader to render a template and add Latte panel to Tracy.
Expected Behavior
Same result as if open_basedir is not set. - No errors
Possible Solution
Add '@' to the is_file() function in the Tracy\Helpers::editorUri() method.
Version: 2.10
Bug Description
When Latte
StringLoader
is used andopen_basedir
is set, theeditorUri()
method passes the html string to theis_file()
function. This causes the following exception: Error: _Latte\Bridges\Tracy\LattePanel-2 ErrorException: is_file(): openbasedir restriction in effect. File(<div>html example</div>
) is not within the allowed path(s)...Steps To Reproduce
Simply set up
open_basedir
, useStringLoader
to render a template and add Latte panel to Tracy.Expected Behavior
Same result as if
open_basedir
is not set. - No errorsPossible Solution
Add '@' to the
is_file()
function in theTracy\Helpers::editorUri()
method.