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

generate wrong URL list when filename contains "#" #436

Closed
ragnaroks opened this issue Jan 8, 2024 · 13 comments
Closed

generate wrong URL list when filename contains "#" #436

ragnaroks opened this issue Jan 8, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@ragnaroks
Copy link

BEFORE

  • Are you using a reverse-proxy, like nginx?
    no

To Reproduce
Steps to reproduce the behavior:

  1. create a directory in HFS service path
  2. put 2 file with name "file #1.txt" and "file #2.txt"
  3. browser this directory, if click filename direactly, it will download
  4. if try generate URL list, will output like
http://127.0.0.1:8384/x1/file #1.txt
http://127.0.0.1:8384/x1/file #2.txt
  1. copy URL and open in new tab, "Not Found"

Describe the bug
seems that HFS not escape the "#" symbol or others too

Expected behavior
if filename contains "#" then generated URL will invalid

Screenshots
not need

Environment (please complete the following information):

  • OS: LinuxMint DebianEditon 6
  • HFS Version 0.50.6
  • Browser chrome 120

Additional context
not need

@ragnaroks ragnaroks added the bug Something isn't working label Jan 8, 2024
@rejetto
Copy link
Owner

rejetto commented Jan 8, 2024

thanks for reporting!
I just noticed that i'm not even attempting encoding, even spaces are left as they are.
I cant' remember why it is so, but it seems wrong.
Fixed in next release

@ragnaroks
Copy link
Author

and '%' symbol need encode too

@rejetto
Copy link
Owner

rejetto commented Jan 8, 2024

sure, no problem

@ragnaroks
Copy link
Author

i send you a cup of coffee for thanks your work

@ragnaroks
Copy link
Author

oh sorry that i get message "此国家或地区不支持捐赠给此收款人", did you have other payment?

@rejetto
Copy link
Owner

rejetto commented Jan 8, 2024

if the one that failed is github https://github.com/sponsors/rejetto
then you can use paypal https://www.paypal.com/donate/?hosted_button_id=HC8MB4GRVU5T2

@ragnaroks
Copy link
Author

your paypal receive configure not allow CHINA send money to you by RECEIVE-PAGE, but find your email and send you by merchant tools,have fun

@ragnaroks
Copy link
Author

image

if this profile is not you, please email me your paypal register email then i send again

@rejetto
Copy link
Owner

rejetto commented Jan 8, 2024

that's not me, i'm a@rejetto.com on paypal

@ragnaroks
Copy link
Author

ragnaroks commented Jan 8, 2024

damn, what a lucky guy...

i send again, have fun

@rejetto
Copy link
Owner

rejetto commented Jan 8, 2024

you sent him money? LOL, i'm sorry :)
so, you are saying that the link I gave you is not working for you in China, but you still can send with paypal.
That's odd! I will look into that asap
and thanks a lot for your donation!

@ragnaroks
Copy link
Author

i am both CLIENT and MERCHANT on paypal, i can't send you as client, but i can send anyone as merchant

@rejetto
Copy link
Owner

rejetto commented Jan 8, 2024

should be fixed by this
https://github.com/rejetto/hfs/releases/tag/v0.51.0-beta9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants