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

math equation return warning: math: illegal characters for : {math equation="rand()" assign="rnd"} #794

Closed
pedromntomas opened this issue Sep 10, 2022 · 0 comments · Fixed by #795

Comments

@pedromntomas
Copy link

Hello,

When using the math function with equation="rand()", the code returns the warning "math: illegal characters".
This because the rand function can be called without parameters and the validation introduced here 215d81a broke the usage of this and other functions that have an option of not receiving a parameter.

Thanks!

wisskid added a commit that referenced this issue Sep 12, 2022
* Fixed use of `rand()` without a parameter in math function
Fixes #794
wisskid added a commit that referenced this issue Sep 12, 2022
* Fixed use of `rand()` without a parameter in math function (for v3.1)
Fixes #794

* Add change in regex for PRCE (PHP < 7.3)

* Add unit tests and correctly set PHP supported versions

* Drop PHP5.2 from CI workflows because it cannot be build anymore

* Fix CI workflow for PHP7.2 and up

* re-add compose packages cache with specific key

* Exclude unit test files from git export

* prevent double CI workflows in PRs
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

Successfully merging a pull request may close this issue.

1 participant