Skip to content

Escape file extension when parsing search results

Winnie requested to merge (removed):escape-file-extension into master

What does this MR do?

Escape the file extension before using it in a regular expression when parsing search results.

Are there points in the code the reviewer needs to double check?

I don't think so...

Why was this MR needed?

When a file extension contains characters which have a meaning in regular expressions, the search may crash.

What are the relevant issue numbers?

fixes #18553 (closed)

Screenshots

Before

prisoned

After

escaped

Merge request reports