Update to v2.1.5:
Fixed: Properly escape entries with a '%'
This commit is contained in:
11
bin/BBlog
11
bin/BBlog
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
## Copyright Ian Jauslin 2015-2019
|
||||
## Copyright Ian Jauslin 2015-2022
|
||||
##
|
||||
## Licensed under the Apache License, Version 2.0 (the "License");
|
||||
## you may not use this file except in compliance with the License.
|
||||
@ -18,7 +18,7 @@
|
||||
enginedir=/usr/share/BBlog/engines
|
||||
|
||||
# version
|
||||
version=2.1.4
|
||||
version=2.1.5
|
||||
|
||||
function print_config {
|
||||
echo "engine: $engine"
|
||||
@ -235,12 +235,13 @@ function replace_format {
|
||||
out="${out//\%$command\%/$replacement}"
|
||||
done
|
||||
|
||||
# un-escape '%' in replacement
|
||||
out="${out//::iansays:percent::/\%}"
|
||||
|
||||
# finish replacing newlines
|
||||
out="${out//\\n/%}"
|
||||
out=$(echo "$out" | tr "%" "\n")
|
||||
|
||||
# un-escape '%' in replacement
|
||||
out="${out//::iansays:percent::/\%}"
|
||||
|
||||
echo "$out"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user