Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UNC path with Backslash character don't work #407

Open
lenhatthanh20 opened this issue Apr 19, 2024 · 0 comments
Open

UNC path with Backslash character don't work #407

lenhatthanh20 opened this issue Apr 19, 2024 · 0 comments

Comments

@lenhatthanh20
Copy link

lenhatthanh20 commented Apr 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant