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

Minifier breaks file I/O #4

Open
neonbunny opened this issue Sep 3, 2024 · 0 comments
Open

Minifier breaks file I/O #4

neonbunny opened this issue Sep 3, 2024 · 0 comments

Comments

@neonbunny
Copy link

The following line removes all spaces from PHP code:

https://github.com/EatonChips/wsh/blob/3ef80e5c84c91945b273c5b359e46f149e679004/cmd/generate.go#L267C3-L267C44

However, the get and put command parsing relies on a trailing space, e.g. https://github.com/EatonChips/wsh/blob/master/templates/php.tml#L41 which is stripped by the above code.

As a result PHP shells passed through the minifier can not get or put files.

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