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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix case where a theme slug is all non-latin characters #1814

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

alexsanford
Copy link
Contributor

Fixes #1771

Adds a special case when it creates a class for the slug. If it has all non-latin characters, it would previously return an empty string and fail. Now it creates a slug using a hex representation of the characters if the string would otherwise be empty.

Also needed to force a UTF-8 encoding when parsing the theme's style.css to get the information. This was a fun bug to track down... 馃檭

@coveralls
Copy link

coveralls commented Nov 2, 2023

Coverage Status

coverage: 85.966%. remained the same
when pulling de4f65e on fix/non-latin-character-slugs
into bce3b48 on master.

@alexsanford alexsanford merged commit 96b6b81 into master Nov 7, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error when run wpscan
3 participants