We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi jonnitto,
thank you for this nice plugin!
Embedding a portrait Youtube video lead to an 500 error.
According to call stack
237 Neos\Eel\CompilingEvaluator_Original::evaluate("Jonnitto.PrettyEmbedHelper.paddingTop(this.ratio || this.force16to9)", Neos\Eel\ProtectedContext) 236 Neos\Eel\Utility_Original::evaluateEelExpression("${Jonnitto.PrettyEmbedHelper.paddingTop(this.ratio || this.force16to9)}", Neos\Eel\CompilingEvaluator, array|37|)
It looks like the bool false gets passed to paddingTop https://github.com/jonnitto/Jonnitto.PrettyEmbedHelper/blob/master/Classes/Eel/Helper.php#L25
false
And paddingTop doesn't handle this case, casts false to 0 and triggers Division by zero.
0
Division by zero
Is this a bad configuration or a bug?
Config:
PrettyEmbedVideoPlatforms: defaults: lightbox: false preserveAspectRatio: false force16to9: false
Thank you very much!
The text was updated successfully, but these errors were encountered:
This is a bug. Do you want to open a PR?
Sorry, something went wrong.
Closed with #3
No branches or pull requests
Hi jonnitto,
thank you for this nice plugin!
Embedding a portrait Youtube video lead to an 500 error.
According to call stack
It looks like the bool
false
gets passed to paddingTop https://github.com/jonnitto/Jonnitto.PrettyEmbedHelper/blob/master/Classes/Eel/Helper.php#L25And paddingTop doesn't handle this case, casts
false
to0
and triggersDivision by zero
.Is this a bad configuration or a bug?
Config:
Thank you very much!
The text was updated successfully, but these errors were encountered: