added extra sanitizing of input but it is not perfect.

This commit is contained in:
Louwrentius 2009-05-05 20:29:42 +00:00
parent ac7192cfde
commit a4f1107863

View File

@ -970,6 +970,8 @@ escape_item () {
ITEM_ESCAPED=`echo "$TMP" | \
sed s/\\ /\\\\\\\\\\\\\\ /g | \
sed s/\\'/\\\\\\\\\\\\\\'/g | \
sed s/\\\`/\\\\\\\\\\\\\\\`/g | \
sed s/\\|/\\\\\\\\\\\\\\|/g | \
sed s/\&/\\\\\\\\\\\\\\&/g | \
sed s/\;/\\\\\\\\\\\\\\;/g | \
sed s/\(/\\\\\\\\\\(/g | \