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

Bug: Themes with names that start with digits cause PHP errors #503

Open
creativecoder opened this issue Jan 5, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@creativecoder
Copy link
Contributor

If you create a theme with a name that starts with a digit, it causes PHP errors, because the theme name is used a function prefix and PHP funciton names can't start with numbers.

We either need to

  • Validate the theme name and not allow them to start with digits
  • Sanitize the theme name in a way that makes sure it's a valid PHP function prefix
@mikachan mikachan added the bug Something isn't working label Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants