From fef6bdde5fd2154a5431927cfde9b5d939683fc0 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 2 Nov 2017 14:48:42 -0600 Subject: [PATCH] Revert "Added system option to enable case insensitive urls. (#1638)" This reverts commit 481fe1903e73d1bc1bc98ec74e4bb1b23a7b3e94. --- system/blueprints/config/system.yaml | 11 ----------- system/src/Grav/Common/Uri.php | 5 ----- 2 files changed, 16 deletions(-) diff --git a/system/blueprints/config/system.yaml b/system/blueprints/config/system.yaml index 33508d9ea..69f48e5b8 100644 --- a/system/blueprints/config/system.yaml +++ b/system/blueprints/config/system.yaml @@ -1154,17 +1154,6 @@ form: validate: type: bool - case_insensitive_urls: - type: toggle - label: PLUGIN_ADMIN.CASE_INSENSITIVE_URLS - highlight: 0 - help: PLUGIN_ADMIN.CASE_INSENSITIVE_URLS_HELP - options: - 1: PLUGIN_ADMIN.YES - 0: PLUGIN_ADMIN.NO - validate: - type: bool - param_sep: type: select size: medium diff --git a/system/src/Grav/Common/Uri.php b/system/src/Grav/Common/Uri.php index cb903fdc5..ad37d0f91 100644 --- a/system/src/Grav/Common/Uri.php +++ b/system/src/Grav/Common/Uri.php @@ -291,11 +291,6 @@ class Uri $this->url = $this->base . $this->uri; - // if case insensitive urls is enabled, lowercase the url - if( $grav['config']->get('system.case_insensitive_urls') ){ - $this->url = strtolower($this->url); - } - // get any params and remove them $uri = str_replace($this->root, '', $this->url);