Skip to content

Commit

Permalink
Do not loose empty space from params
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailnov committed Jan 20, 2021
1 parent 158390f commit 582b417
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bashlib.in
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ param() {
else
value=$(@ENV@ | @GREP@ '^FORM_' | @SED@ -e 's/FORM_//' | @CUT@ -d= -f1)
fi
echo ${value}
# "+" is URL-encoded as "%2B", web server replaces spaces with "+", replace back,
# otherwise safe_param() just removes the "+" sign and looses the space.
echo "${value}" | @SED@ -e 's/+/ /'
unset name
unset value
}
Expand Down

0 comments on commit 582b417

Please sign in to comment.