Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

This plugin now blocks localhost requests

Aperta
#106 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
56/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php
Ambito
backend

Direzione di ricerca

Start by tracing where webhook URLs are validated and which tests cover URL acceptance; the issue points to the switch to Craft’s url-validator. Reproduce the failure with http://localhost and check that it is accepted after the change, while existing URL validation behavior remains covered.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug repo:webhooks
Description

This plugins used to be fine adding a http://localhost/ url as a webhook, which isn't an insane practice when you want to notify a sidecar container or a process running on the same machine as craftCMS.

However, with the switch to https://github.com/craftcms/url-validator it now consider a localhost url invalid.

Steps to reproduce
  1. Add a webhook pointing to http://localhost
Additional info
  • Craft version: 4.18.8
  • PHP version: 8.1.31
  • Database driver & version: MySQL 8.0.42
  • Plugins & versions:

Amazon S3 2.3.2
Formie 2.2.30
PathTools 4.0.0-beta.1
Redactor 3.1.0
Redirect Manager 4.0
Retcon 2.8.2
Super Table 3.0.16
Tags 2.0.0
Webhooks 3.3.0

Lingua principale
PHP
Stelle
84
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di craftcms/webhooks

Tutte le issue di craftcms/webhooks

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.