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

Pr/decode options #725

Merged
merged 2 commits into from
Aug 24, 2018
Merged

Pr/decode options #725

merged 2 commits into from
Aug 24, 2018

Conversation

uli42
Copy link
Member

@uli42 uli42 commented Aug 23, 2018

decode URL encoded characters in options string. This is a much lighter (and cleaner) solution for the problem that #551 tries to solve.

(I did not succeed in linking the URLdecode stuff from nxcomp so I cloned it. If I get that right nxagent is not using anything from nxcomp directly currently.)

Copy link
Member

@sunweaver sunweaver left a comment

Choose a reason for hiding this comment

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

This is more a comment / question than a request for changes: Why don't you simply use the coder version of URLDecodeInPlace from nxcomp straight away?

We need to make URLDecodeInPlace a public symbol and then simply include NX.h in Args.c.

*to = '\0';
}
}

Copy link
Member

Choose a reason for hiding this comment

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

Why copy of code here? We should rather use the version found in nxcomp, shouldn't we?

@uli42
Copy link
Member Author

uli42 commented Aug 24, 2018 via email

uli42 added 2 commits August 24, 2018 11:54
Same as in nxcomp's option handling. We really only need it for ","
(%2C) and "=" (%3D), currently, but it can handle all encoded
characters.
Copy link
Member

@sunweaver sunweaver left a comment

Choose a reason for hiding this comment

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

Ok, then...

@sunweaver sunweaver merged commit 30a9627 into ArcticaProject:3.6.x Aug 24, 2018
sunweaver added a commit that referenced this pull request Aug 24, 2018
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.

2 participants