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

Emojis in config files seem to cause problems #379

Closed
krisavi opened this issue Apr 23, 2024 · 5 comments
Closed

Emojis in config files seem to cause problems #379

krisavi opened this issue Apr 23, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@krisavi
Copy link

krisavi commented Apr 23, 2024

If emoji in config file, then getting error like:
Cannot get sections from config file 'ascii' codec can't decode byte 0xf0 in position 3757: ordinal not in range(128)

It seems haproxy handles emojis just fine, but roxy-wi is not able to parse emojis in acl
In haproxy config I have lines like...
acl snakey hdr(host) -i 🐍.my.tld

@Aidaho12 Aidaho12 added the bug Something isn't working label Apr 23, 2024
@Aidaho12
Copy link
Member

Does it looks like:

frontend test
    mode http
    maxconn 2000
    acl snakey hdr(host) -i :snake:.my.tld

in your config? I cannot reproduce it

@krisavi
Copy link
Author

krisavi commented Apr 24, 2024

In the config even if I open with vim it shows as snake emoji 🐍, not :snake:

Removing those lines, even if commented resolved the issue, but of course made it not to detect those edge case subdomain redirections.

@Aidaho12
Copy link
Member

Could you send it in ASCI mode?

@krisavi
Copy link
Author

krisavi commented Apr 25, 2024

cat -A shows it like that:
acl snakey hdr(host) -i M-pM-^_M-^PM-^M.my.tld$

@Aidaho12
Copy link
Member

Screenshot 2024-04-27 at 09 31 36
Well, it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants