Skip to content

Conversation

@ltdrdata
Copy link
Collaborator

Check dest instead of source when validating destination path in move_userdata endpoint.

Check `dest` instead of `source` when validating destination path
in move_userdata endpoint.
Copy link
Collaborator

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

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

LGTM.

Before:

ComfyUI/app/user_manager.py

Lines 422 to 428 in 52e778f

source = get_user_data_path(request, check_exists=True)
if not isinstance(source, str):
return source
dest = get_user_data_path(request, check_exists=False, param="dest")
if not isinstance(source, str):
return dest

@Kosinkadink Kosinkadink merged commit ca7808f into comfyanonymous:master Nov 28, 2025
10 checks passed
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.

3 participants