fix: prevent double slashes in URL concatenation for asset thumbnails#150
Closed
Elia-Darwish wants to merge 1 commit intomainfrom
Closed
fix: prevent double slashes in URL concatenation for asset thumbnails#150Elia-Darwish wants to merge 1 commit intomainfrom
Elia-Darwish wants to merge 1 commit intomainfrom
Conversation
Normalize baseURL by stripping trailing slashes before URL concatenation in functions that build asset URLs. This prevents double slashes when users provide a baseURL with a trailing slash. Affected plugins: - plugin-ai-generation-web (renderStyleTransferProperty.ts) - plugin-ai-image-generation-web (GptImage1.styles.ts, ChangeStyleLibrary.ts) - plugin-cutout-library-web (plugin.ts) Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Closed in favor of internal PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
baseURLby stripping trailing slashes before URL concatenation in functions that build asset URLshttps://cdn.img.ly/.../gpt-image-1//thumbnails/...) when users provide abaseURLwith a trailing slashAffected Files
renderStyleTransferProperty.tsgetDefaultStyles()GptImage1.styles.tscreateStyleAssetSource()ChangeStyleLibrary.tscreateStyleAssetSource()plugin.tsaddCutoutAssetLibraryEntry(),addCutoutAssetSource()Test Plan
baseURLthat includes trailing slash🤖 Generated with Claude Code