Skip to content

Validate automatic URLs - #8813

Open
APickledWalrus wants to merge 3 commits into
dev/patchfrom
patch/safer-url-validation
Open

Validate automatic URLs#8813
APickledWalrus wants to merge 3 commits into
dev/patchfrom
patch/safer-url-validation

Conversation

@APickledWalrus

Copy link
Copy Markdown
Member

Problem

The automatic link parsing in strings (enabled via config) does not validate whether the matched content is actually a valid URL. Thus, an exception occurs, which can cascade into other failures.

Solution

Validates that the content is a valid URL before parsing. Attempts recovery if possible (not sure if this is the right idea? I'd like opinions).

Testing Completed

Added a JUnit test case

Supporting Information


Completes: none (reported on Discord)
Related: none
AI assistance: none

@APickledWalrus
APickledWalrus requested a review from a team as a code owner August 4, 2026 18:36
@APickledWalrus
APickledWalrus requested review from Pesekjak and cheeezburga and removed request for a team August 4, 2026 18:36
@skriptlang-automation skriptlang-automation Bot added needs reviews A PR that needs additional reviews needs triage An issue that hasn't been classified or verified yet labels Aug 4, 2026
@skriptlang-automation

This comment has been minimized.

@skriptlang-automation skriptlang-automation Bot added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. and removed needs triage An issue that hasn't been classified or verified yet labels Aug 4, 2026
@skriptlang-automation skriptlang-automation Bot moved this to In Review in 2.16 Releases Aug 4, 2026
Comment thread src/test/skript/environments/java21/paper-1.21.json Outdated
@github-project-automation github-project-automation Bot moved this from In Review to Awaiting Merge in 2.16 Releases Aug 17, 2026
@skriptlang-automation skriptlang-automation Bot added patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. and removed needs reviews A PR that needs additional reviews labels Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.

Projects

Status: Awaiting Merge

Development

Successfully merging this pull request may close these issues.

3 participants