projects
/
cgilite
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6147b0e
)
bugfix URL escaping for ? and %
author
Paul Hänsch
<paul@plutz.net>
Tue, 16 Nov 2021 12:08:05 +0000
(13:08 +0100)
committer
Paul Hänsch
<paul@plutz.net>
Tue, 16 Nov 2021 12:08:05 +0000
(13:08 +0100)
cgilite.sh
patch
|
blob
|
history
diff --git
a/cgilite.sh
b/cgilite.sh
index 03541b41829355d69287596ed40041dccf8545e1..90d65577648d2d78efa7d349e90677984f87c436 100755
(executable)
--- a/
cgilite.sh
+++ b/
cgilite.sh
@@
-313,7
+313,7
@@
URL(){
"${CR}"*) out="${out}%0D"; str="${str#?}";;
"${BR}"*) out="${out}%0A"; str="${str#?}";;
%*) out="${out}%25"; str="${str#?}";;
- *) out="${out}${str%%[]&\"\'
# ${CR}${BR}[]*}"; str="${str#"${str%%[]&\"\'# ${CR}${BR}
[]*}"}";;
+ *) out="${out}${str%%[]&\"\'
\?# ${CR}${BR}%[]*}"; str="${str#"${str%%[]&\"\'\?# ${CR}${BR}%
[]*}"}";;
esac; done
printf %s "$out"
}