ticket 342 : sanitize download name

This commit is contained in:
Olivier Legat 2021-09-01 11:56:15 +02:00
parent b4b648401b
commit eaedea3d00
2 changed files with 2 additions and 2 deletions

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long

View file

@ -19,7 +19,7 @@
</td>
<td class="ctas">
<i class="fal fa-copy" v-clipboard="item.url"></i>
<a :href="item.url" :download="storeMedia.libelle.replace(' ', '_') + '_' + item.largeur + 'x' + item.hauteur + 'px'"><i class="fas fa-arrow-circle-down"></i></a>
<a :href="item.url" :download="storeMedia.libelle.replaceAll(' ', '_').replaceAll('.','') + '_' + item.largeur + 'x' + item.hauteur + 'px'"><i class="fas fa-arrow-circle-down"></i></a>
</td>
</tr>
</tbody>