Skip to content

Validate automatic URLs - #8813

Merged
APickledWalrus merged 4 commits into
dev/patchfrom
patch/safer-url-validation
Aug 26, 2026
Merged

Validate automatic URLs#8813
APickledWalrus merged 4 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
@APickledWalrus
APickledWalrus merged commit af8b699 into dev/patch Aug 26, 2026
13 checks passed
@skriptlang-automation skriptlang-automation Bot added the completed The issue has been fully resolved and the change will be in the next Skript update. label Aug 26, 2026
@github-project-automation github-project-automation Bot moved this from Awaiting Merge to Done - Awaiting Release in 2.16 Releases Aug 26, 2026
@skriptlang-automation skriptlang-automation Bot removed the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label Aug 26, 2026
@APickledWalrus
APickledWalrus deleted the patch/safer-url-validation branch August 26, 2026 21:01
@APickledWalrus APickledWalrus moved this from Done - Awaiting Release to Done - Released in 2.16 Releases Sep 2, 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. completed The issue has been fully resolved and the change will be in the next Skript update.

Projects

Status: Done - Released

Development

Successfully merging this pull request may close these issues.

3 participants