-
Notifications
You must be signed in to change notification settings - Fork 77
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
escape emojis when encodeUriCOmponent on geo #117
Comments
What OS? AFAIR we were sanitizing SSID names on |
Here's some info on the proposed solution by @michelson http://ecmanaut.blogspot.com/2006/07/encoding-decoding-utf8-in-javascript.html |
We are, indeed, removing weird chars when parsing the output from the system command. Or at least we're trying to: https://github.com/prey/prey-node-client/blob/master/lib/agent/providers/network/windows.js#L102 |
After some debugging, @tomas found out that what's causing the problem is that the regex is missing the |
According to my testings, this is only reproducible in Mac OS X. Linux and Windows are escaping the emojis correctly. |
it seems that ssid with emojis are generating errors when the url is encoded:
the offending line is in geo/index.js 40
I tried to escape the the ssid and it works , but the emoji is removed.
The text was updated successfully, but these errors were encountered: