Wrap parameters in string quotes to prevent formatting issue #20

Merged
vlw merged 1 commit from refs/pull/20/head into master 2026-06-30 12:06:12 +02:00
vlw commented 2026-06-30 12:05:10 +02:00 (Migrated from codeberg.org)

This PR fixes a bug that occurs when URL-encoded characters are passed as parameters. The left square bracket [ when URL-encoded becomes %5B. This causes printf to treat the input as a string to be formatted. Let's pass the variables as actual format arguments instead, which is the correct way to do it anyways.

This PR fixes a bug that occurs when URL-encoded characters are passed as parameters. The left square bracket `[` when URL-encoded becomes `%5B`. This causes `printf` to treat the input as a string to be formatted. Let's pass the variables as actual format arguments instead, which is the correct way to do it anyways.
Sign in to join this conversation.
No description provided.