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

Wrong UTF characters in two JS files distributed with WP or WP plugins #763

Closed
CaptainTomBln opened this issue Jun 4, 2023 · 1 comment

Comments

@CaptainTomBln
Copy link

Hi there, I am running three WP websites and I have to deal with many hacker attacks, So I installed the Anti-Malware plugin that works properly. But there are two files that cannot be scanned: /wp-includes/js/dist/date.js and /wp-includes/js/dist/date.min.js. Both seem to be part of the momentjs functionality. Also my editor PSPad doesn't load them, complaining that there are some wrong UTF characters included into the files. This is the same with all three WP websites. Using MS Word and saving the files again with the option "allow changing characters" I could make them readable by my editor as well as by the anti-malware scanner. But I am not sure if I didn't change anything important in those huge resources. Also I guess that WP updates will put the old files back on my WP installations. Does anybody have an idea how the files can be repaired and distributed to WP?
Thanks in advance, Thomas

@gilmoreorless
Copy link
Member

Resolved at moment/moment-timezone#1065

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

No branches or pull requests

2 participants