From 31b9f628c40b540bab83b2f2a4f68924ed310a88 Mon Sep 17 00:00:00 2001 From: Mathew Olsen Date: Mon, 29 Jun 2015 11:21:48 -0400 Subject: [PATCH] updates to prevent spaces in URL from throwing - No route could be found matching the callback warning --- Anchor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Anchor.php b/Anchor.php index 44a0b94..415865f 100644 --- a/Anchor.php +++ b/Anchor.php @@ -1115,7 +1115,7 @@ public static function run($exit=TRUE) $linkable ); - if ($callable === FALSE) { + if ($callable === FALSE || strpos($callable, ' ') !== FALSE) { throw new AnchorNotFoundException(); }