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

wp-content/plugins/qtranslate-xt-3.11.4/qtranslate_utils.php on line 460 #1175

Closed
nabi009 opened this issue May 26, 2022 · 2 comments
Closed
Labels
core Core functionalities, including the admin section

Comments

@nabi009
Copy link

nabi009 commented May 26, 2022

[](url
Screen Shot 2022-05-26 at 11 54 01
)

@herrvigg
Copy link
Collaborator

herrvigg commented May 26, 2022

It was supposed to be fixed in #1047 but in fact there's a bug in case the string (language) has length = 2. Quite surprising it didn't happen before... Though many locales are like en_US en_GB there are also quite many with just the 2 letters language.

herrvigg added a commit that referenced this issue May 26, 2022
The strlen check from #1047 was wrong.
Also rewrite the second check without "fake" while loop.
@herrvigg
Copy link
Collaborator

New fix merged in master.

@herrvigg herrvigg added the core Core functionalities, including the admin section label May 26, 2022
@nabi009 nabi009 closed this as completed May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core functionalities, including the admin section
Projects
None yet
Development

No branches or pull requests

2 participants