Skip to content

better parameters handling - handles quotes as well#1266

Merged
robgjansen merged 5 commits intoshadow:mainfrom
marcosimioni:fix-1265-handle-params-with-quotes
Apr 8, 2021
Merged

better parameters handling - handles quotes as well#1266
robgjansen merged 5 commits intoshadow:mainfrom
marcosimioni:fix-1265-handle-params-with-quotes

Conversation

@marcosimioni
Copy link
Copy Markdown
Contributor

closes #1265

Couple of questions:

@robgjansen robgjansen self-assigned this Apr 6, 2021
@robgjansen robgjansen added the Type: Bug Error or flaw producing unexpected results label Apr 6, 2021
Copy link
Copy Markdown
Member

@robgjansen robgjansen 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 a great improvement, thanks for the contribution! I'm requesting changes to fix the memory leak.

@robgjansen
Copy link
Copy Markdown
Member

I've used g_shell_parse_argv() here

Seems ok to me.

should I add a test case?

I would be nice to add something to one of the tests in src/test, but in this case we don't have a good way to test this so I think we can skip it on this one.

@marcosimioni marcosimioni requested a review from robgjansen April 8, 2021 05:30
@marcosimioni marcosimioni force-pushed the fix-1265-handle-params-with-quotes branch from 3307f10 to 5ab1cfc Compare April 8, 2021 14:28
@marcosimioni
Copy link
Copy Markdown
Contributor Author

quick q - should I switch this PR to dev? or should it stay on main?

Copy link
Copy Markdown
Member

@robgjansen robgjansen left a comment

Choose a reason for hiding this comment

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

Looks great! We want to merge to main, which I'll do shortly :) Thank you!

@robgjansen robgjansen merged commit a9253ad into shadow:main Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Error or flaw producing unexpected results

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Process configuration arguments enclosed with double quotes (") are not properly handled

2 participants