Skip to content

Comments

fix: Prevent generating invalid link on empty scraper response#5876

Merged
WithoutPants merged 1 commit intostashapp:developfrom
Larsluph:fix/scraper-link
Jun 11, 2025
Merged

fix: Prevent generating invalid link on empty scraper response#5876
WithoutPants merged 1 commit intostashapp:developfrom
Larsluph:fix/scraper-link

Conversation

@Larsluph
Copy link
Contributor

Old behaviour

When using a scraper that doesn't return an ID for studios or performers, the current version of stash generates an invalid link due to unsafe string building.

URL generated: https://${STASH_BASE_URL}/undefinednull

Fixed behaviour

A check has been added that prevents generating such links and keeping it a bolded text element instead.

@WithoutPants WithoutPants added the bug Something isn't working label Jun 11, 2025
@WithoutPants WithoutPants added this to the Version 0.29.0 milestone Jun 11, 2025
@WithoutPants WithoutPants merged commit 155dbc3 into stashapp:develop Jun 11, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants