Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracy\Helpers::editorUri() is_file() error with Latte StringLoader and open_basedir #572

Closed
cima-alfa opened this issue Sep 19, 2023 · 0 comments

Comments

@cima-alfa
Copy link

Version: 2.10

Bug Description

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(): open_basedir 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.

@cima-alfa cima-alfa changed the title Tracy\Helpers editorUri() is_file() error with Latte StringLoader and open_basedir Tracy\Helpers::editorUri() is_file() error with Latte StringLoader and open_basedir Sep 19, 2023
@dg dg closed this as completed in 99bcc14 Sep 19, 2023
dg added a commit that referenced this issue Sep 25, 2023
dg added a commit that referenced this issue Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant