Update to v2.2.1:

Fix: Missing quotes in filter interpreter.
This commit is contained in:
Ian Jauslin 2023-03-27 11:47:09 -04:00
parent 70bba87946
commit c6e9cb3af4
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2.2.1:
* Fix: Missing quotes in filter interpreter.
2.2:
* New: Allow for the value of other entries to be in the 'sed' command of a

View File

@ -18,7 +18,7 @@
enginedir=/usr/share/BBlog/engines
# version
version=2.2
version=2.2.1
function print_config {
echo "engine: $engine"
@ -223,7 +223,7 @@ function replace_format {
# apply filter
if [ -n "$filter" ]; then
# replace '%' inside filter text
sed_cmd=$(replace_format $(eval "echo \$filter_$filter"))
sed_cmd=$(replace_format "$(eval echo \$filter_$filter)")
replacement=$(eval "echo \$$field" | sed -r "$sed_cmd" )
else
replacement=$(eval "echo \$$field")