Skip to content

Enable urlencoding for pictrs proxy parameter (fixes #5749)#5776

Merged
dessalines merged 1 commit intomainfrom
proxy-urlencode
Jun 11, 2025
Merged

Enable urlencoding for pictrs proxy parameter (fixes #5749)#5776
dessalines merged 1 commit intomainfrom
proxy-urlencode

Conversation

@Nutomic
Copy link
Copy Markdown
Member

@Nutomic Nutomic commented Jun 11, 2025

No description provided.

format!("{}image/original?proxy={}", pictrs_config.url, encoded_url)
} else {
let file_type = file_type(params.file_type, url.as_str());
let file_type = file_type(params.file_type, url.path());
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was also wrong as it may include query params in the file type, so we explicitly need to use the path.

@dessalines dessalines merged commit 15cfb90 into main Jun 11, 2025
2 checks passed
@Nothing4You Nothing4You deleted the proxy-urlencode branch September 11, 2025 17:34
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