Skip to content

Validate automatic URLs - #8813

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

Validate automatic URLs#8813
APickledWalrus wants to merge 2 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
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. needs reviews A PR that needs additional reviews

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

2 participants