Ajout de l’échappement de "

This commit is contained in:
Breizh 2023-01-05 16:58:25 +01:00
parent 5ff54442ea
commit a377748de7

View file

@ -49,6 +49,7 @@ row() {
encoded="${1//\&/%26}" encoded="${1//\&/%26}"
encoded="${encoded//\?/%3F}" encoded="${encoded//\?/%3F}"
encoded="${encoded//\#/%23}" encoded="${encoded//\#/%23}"
encoded="${encoded//\"/%22}"
cat <<DELIM cat <<DELIM
<tr> <tr>
<td><a href="${encoded}">${1}</a></td> <td><a href="${encoded}">${1}</a></td>
@ -167,6 +168,7 @@ do
encoded_src="${i//\&/%26}" encoded_src="${i//\&/%26}"
encoded_src="${encoded_src//\?/%3F}" encoded_src="${encoded_src//\?/%3F}"
encoded_src="${encoded_src//\#/%23}" encoded_src="${encoded_src//\#/%23}"
encoded_src="${encoded_src//\"/%22}"
type="<audio controls preload=\"$preload\"><source src=\"$encoded_src\" type=\"$mimetype\">$mimetype</audio>";; type="<audio controls preload=\"$preload\"><source src=\"$encoded_src\" type=\"$mimetype\">$mimetype</audio>";;
image/*) image/*)
# Pour les images, une miniature de 60px de haut est créée # Pour les images, une miniature de 60px de haut est créée