mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #1335] [MERGED] Fix parsing of URLs with plus signs #1022
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1335
Author: @bioball
Created: 12/2/2025
Status: ✅ Merged
Merged: 12/3/2025
Merged by: @bioball
Base:
main← Head:fix-uri-parsing📝 Commits (3)
c408c82Fix parsing of URLs with plus signs294ff46Update release notes7946d1dUndo changelog change📊 Changes
3 files changed (+10 additions, -1 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/util/IoUtils.java(+1 -1)📝
pkl-core/src/test/files/LanguageSnippetTests/input/api/Resource.pkl(+6 -0)📝
pkl-core/src/test/files/LanguageSnippetTests/output/api/Resource.pcf(+3 -0)📄 Description
This fixes an issue where URLs with schemes that contain
+,-, and.would not be parsed correctly.For example,
foo+bar:///?baz.pklwould turn intofoo+bar:///%3Fbaz.pkl. The query param is lost, and turned into the path.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.