Skip to content

UNC path with Backslash character don't work #407

@lenhatthanh20

Description

@lenhatthanh20

Hello,

Background

I am using HTML Purifier to handle URI validation.
But I get a problem when using it file file protocol.
It won't work with my case: file:\\\Users\thanh-le\Downloads\my-folder

Cause

The backslash character (\) will be encode by HTMLPurifier_PercentEncoder

Suggest Solution

Ignore backslash when doing percent encode by adding backslash character here: https://github.com/ezyang/htmlpurifier/blob/d9fbef8e27f6a0848a8987a8534351de98eb0fa1/library/HTMLPurifier/URI.php

How to you think about this issue?
Thank you so much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions