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

[FIX] filtering non-safe ASCII header characters from user agent, centralizing #706

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

rksh
Copy link
Contributor

@rksh rksh commented Jul 23, 2024

fix for #703

filters non-ascii header chars if present in the elements we use to construct the user agent header and DRYs UserAgent generation into the WiGLEApiManager class.

@uhtu
Copy link
Member

uhtu commented Jul 23, 2024

👍

@@ -88,6 +88,7 @@ public class WiGLEApiManager {
System.getProperty("os.name") + " " +
System.getProperty("os.version") +
" [" + System.getProperty("os.arch") + "]";
javaVersion = javaVersion.replaceAll("[^\\x00-\\x7F]", "");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xkcd.com/1171/

@rksh rksh merged commit 4a7d82f into wiglenet:main Jul 29, 2024
1 check passed
@rksh rksh deleted the ua_string_safety branch November 14, 2024 01:18
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

Successfully merging this pull request may close these issues.

3 participants