summaryrefslogtreecommitdiff
path: root/src/uri
diff options
context:
space:
mode:
Diffstat (limited to 'src/uri')
-rwxr-xr-xsrc/uri2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uri b/src/uri
index 39f1409..b9a5f58 100755
--- a/src/uri
+++ b/src/uri
@@ -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])
}