diff options
author | EuAndreh <eu@euandre.org> | 2025-03-27 16:41:12 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-03-27 16:41:12 -0300 |
commit | 4fe62dca0aea7250c76a2a6ace2059dbbe2b7e80 (patch) | |
tree | dd3696d2bc59952b561df55089294f695317491c | |
parent | src/ifok: Add working utility (diff) | |
download | eut-4fe62dca0aea7250c76a2a6ace2059dbbe2b7e80.tar.gz eut-4fe62dca0aea7250c76a2a6ace2059dbbe2b7e80.tar.xz |
src/uri: Fix off-by-one end of string
-rwxr-xr-x | src/uri | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -9,7 +9,7 @@ BEGIN { } { - for (i = 1; i < length($0); i++) { + for (i = 1; i <= length($0); i++) { c = substr($0, i, 1) printf "%s", (c ~ /^[-._a-zA-Z0-9]$/ ? c : hex[c]) } |