From ca040a22a21abfb0b12c67518816169b4911e1de Mon Sep 17 00:00:00 2001 From: Nathan Glasl Date: Thu, 12 May 2016 13:02:15 +1000 Subject: [PATCH] Updating the documentation formatting, and correcting an issue where URLs can encounter copy and paste issues. --- README.md | 6 ++---- code/services/MisdirectionService.php | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 78c8956..3b6de58 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,8 @@ # [misdirection](https://packagist.org/packages/nglasl/silverstripe-misdirection) -_The current release is **2.2.2**_ +_The current release is **2.2.3**_ - A module for SilverStripe which will allow both simple and regular expression link - redirections based on customisable mappings, either hooking into a page not found or - replacing the default automated URL handling. +> A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling. This is based upon the existing [link mapping](https://github.com/silverstripe-australia/link-mapping) module, aiming to provide a more robust solution for both users and developers alike, with further support and customisation! diff --git a/code/services/MisdirectionService.php b/code/services/MisdirectionService.php index 5528745..77aca66 100644 --- a/code/services/MisdirectionService.php +++ b/code/services/MisdirectionService.php @@ -16,7 +16,7 @@ class MisdirectionService { public static function unify_URL($URL) { - return strtolower(trim($URL, '/?')); + return strtolower(trim($URL, ' ?/')); } /**