From 9348b5c553ee9caf9e68de139e48aacaee4ce594 Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Wed, 24 Oct 2012 22:03:35 +0100 Subject: [PATCH] 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... --- utils/pdfattach | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/pdfattach b/utils/pdfattach index c2b3a1142..73f81f02f 100755 --- a/utils/pdfattach +++ b/utils/pdfattach @@ -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" }