Skip to content

Commit 1a195cd

Browse files
leftybournesbackportbot[bot]
authored andcommitted
fix(files): escape html entities in dav search requests
Signed-off-by: Kent Delante <kent@delante.me> This fixes a 'xmlParseEntityRef: no name' error returned when searching in files navigation while in folders with special characters in the name.
1 parent 544b47c commit 1a195cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files/src/services/WebDavSearch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export async function searchNodes(query: string, { dir, signal }: SearchNodesOpt
5656
</d:select>
5757
<d:from>
5858
<d:scope>
59-
<d:href>/files/${user.uid}${dir || ''}</d:href>
59+
<d:href>/files/${user.uid}${dir ? escapeHTML(dir) : ''}</d:href>
6060
<d:depth>infinity</d:depth>
6161
</d:scope>
6262
</d:from>

0 commit comments

Comments
 (0)