From 77c873051f1bf7957753710f9a6319814d60b897 Mon Sep 17 00:00:00 2001 From: Stefan Gotre Date: Sun, 9 Oct 2022 13:16:28 +0200 Subject: [PATCH] fix #1093, delete tags which contain forward slashes --- routes/web.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index e221c3d9..c211b2a4 100644 --- a/routes/web.php +++ b/routes/web.php @@ -16,7 +16,9 @@ Route::get('/monitoring', 'MonitoringController@index')->name('horizon.monitoring.index'); Route::post('/monitoring', 'MonitoringController@store')->name('horizon.monitoring.store'); Route::get('/monitoring/{tag}', 'MonitoringController@paginate')->name('horizon.monitoring-tag.paginate'); - Route::delete('/monitoring/{tag}', 'MonitoringController@destroy')->name('horizon.monitoring-tag.destroy'); + Route::delete('/monitoring/{tag}', 'MonitoringController@destroy') + ->name('horizon.monitoring-tag.destroy') + ->where('tag', '.*');; // Job Metric Routes... Route::get('/metrics/jobs', 'JobMetricsController@index')->name('horizon.jobs-metrics.index');