feature(cloudcmd) improve support of NBSP

This commit is contained in:
coderaiser 2022-04-23 01:23:27 +03:00
parent e129ab6a79
commit 42c8fd7bfe
8 changed files with 40 additions and 39 deletions

View file

@ -229,7 +229,7 @@ test('cloudcmd: route: not found', async (t) => {
test('cloudcmd: route: sendIndex: encode', async (t) => {
const name = '"><svg onload=alert(3);>';
const nameEncoded = '&quot;&gt;&lt;svg&nbsp;onload=alert(3);&gt;';
const nameEncoded = '&quot;&gt;&lt;svg onload=alert(3);&gt;';
const path = '/';
const files = [{
name,