mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Escape ampersand & in the filename also.
I am amazed what stupid filenames some people come up with, instead of abiding by old good [a-zA-Z0-9] character set and 8.3 filename length...
This commit is contained in:
committed by
Qingping Hou
parent
ed76aa78f4
commit
9348b5c553
@@ -13,7 +13,7 @@ progname=$(basename $0)
|
||||
function escape_tex_specialchars()
|
||||
{
|
||||
local txt=$1
|
||||
local res=$(echo "$txt" | sed -e "s%_%\\\_%g")
|
||||
local res=$(echo "$txt" | sed -e "s%_%\\\_%g" -e "s%&%\\\&%g")
|
||||
echo "$res"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user