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

Fix the issue that some URL which has percent-encoding with \0 will cause nil cache path #3744

Merged

Conversation

dreampiggy
Copy link
Contributor

New Pull Request Checklist

  • I have read and understood the CONTRIBUTING guide

  • I have read the Documentation

  • I have searched for a similar pull request in the project and found none

  • I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)

  • I have added the required tests to prove the fix/feature I am adding

  • I have updated the documentation (if necessary)

  • I have run the tests and they pass

  • I have run the lint and it passes (pod lib lint)

This merge request fixes / refers to the following issues: ...

Pull Request Description

Use the more robust way to calculate cache path, still keep the exists behavior

See: #3740 root case

…ause nil cache path

Use the more robust way to calculate cache path, still keep the exists behavior
@dreampiggy dreampiggy force-pushed the bugfix/disk_cache_nil_for_EOF_url branch from 0b800dd to d42cc27 Compare August 22, 2024 09:40
@dreampiggy dreampiggy merged commit ab914e7 into SDWebImage:master Aug 22, 2024
5 of 7 checks passed
@dreampiggy dreampiggy added this to the 5.19.7 milestone Aug 22, 2024
Copy link

@nicnac228 nicnac228 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep

Copy link

@nicnac228 nicnac228 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stupid

@dreampiggy dreampiggy deleted the bugfix/disk_cache_nil_for_EOF_url branch August 26, 2024 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cache Anything related to Cache System
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants