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

URL-decode path from API #4754

Closed
wants to merge 1 commit into from
Closed

Conversation

TobTobXX
Copy link

@TobTobXX TobTobXX commented Sep 2, 2024

See #4753.

@TobTobXX TobTobXX changed the title URL-decode path from API [WIP] URL-decode path from API Sep 2, 2024
@TobTobXX TobTobXX changed the title [WIP] URL-decode path from API URL-decode path from API Sep 2, 2024
@@ -139,6 +140,9 @@ def get_user_data_path(request, check_exists = False, param = "file"):
if not file:
return web.Response(status=400)

# Decode URL-encoded file path
file = urllib.parse.unquote(file);

Choose a reason for hiding this comment

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

You don't need that semicolon in python. :)
I would remove that.

Suggested change
file = urllib.parse.unquote(file);
file = urllib.parse.unquote(file)

Copy link
Contributor

Choose a reason for hiding this comment

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

@TobTobXX not sure why you marked this as resolved but didn't actually resolve it? There's still a semicolon there

@w1gs
Copy link
Contributor

w1gs commented Sep 6, 2024

Hey any updates on this? It's currently breaking my ComfyUI setup and makes it hard to update without it. If needed I can make the changes and submit another PR if it'll push this along faster.

@TobTobXX
Copy link
Author

TobTobXX commented Sep 6, 2024

It's currently breaking my ComfyUI setup and makes it hard to update without it.

Tip: When running into breaking bugs like this, just download the fixing commit as a patch and apply it yourself.
This is a Dockerfile snippet that does this:

# Apply patches
COPY *.patch ./
RUN git apply *.patch && rm *.patch

@mcmonkey4eva
Copy link
Contributor

#4801 replaced this

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

Successfully merging this pull request may close these issues.

4 participants