From 958557d2fee353735b81e8c4cf920d210c907240 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 4 May 2017 06:47:57 -0600 Subject: [PATCH] Removed logging statement for invalid slug #1459 --- CHANGELOG.md | 1 + system/src/Grav/Common/Page/Page.php | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1ebd5ba40..1a1e655a60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ 1. [](#improved) * Add more controls over HTML5 video attributes (autoplay, poster, loop controls) [#1442](https://github.com/getgrav/grav/pull/1442) + * Removed logging statement for invalid slug [#1459](https://github.com/getgrav/grav/issues/1459) 1. [](#bugfix) * Fix to force route/redirect matching from the start of the route by default [#1446](https://github.com/getgrav/grav/issues/1446) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index 41e177cf0a..fc3dc1d6cb 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -1497,9 +1497,6 @@ public function slug($var = null) { if ($var !== null && $var !== "") { $this->slug = $var; - if (!preg_match('/^[a-z0-9][-a-z0-9]*$/', $this->slug)) { - Grav::instance()['log']->notice("Invalid slug set in YAML frontmatter: " . $this->rawRoute() . " => " . $this->slug); - } } if (empty($this->slug)) {