échappement simplifié

This commit is contained in:
Jérémy Lecour 2018-09-20 14:25:37 +02:00 committed by Jérémy Lecour
parent 4a8e5d89e5
commit d99956213b

View file

@ -91,7 +91,8 @@ if test -x "${GIT_BIN}"; then
fi fi
# insert into PG # insert into PG
SQL_TEXTE=`echo "${TEXTE}" | sed "s/'/\\\\\\'/g ; s@/@\\\\\/@g ; s@\\&@et@g"` # SQL_TEXTE=`echo "${TEXTE}" | sed "s/'/\\\\\\'/g ; s@/@\\\\\/@g ; s@\\&@et@g"`
SQL_TEXTE=`echo "${TEXTE}" | sed "s/'/''/g"`
echo " echo "
INSERT INTO evomaint(hostname,userid,ipaddress,begin_date,end_date,details) INSERT INTO evomaint(hostname,userid,ipaddress,begin_date,end_date,details)