--- 0001-Issue-2209145-Move-all-path-alias-SQL-queries-to-a-s_0.patch 2014-03-24 14:24:27.000000000 +0100 +++ 0001-Issue-2209145-Move-all-path-alias-SQL-queries-to-a-s1.patch 2014-03-24 17:04:31.500019122 +0100 @@ -1 +1 @@ -From 75fe18a8a2c56f237363e29210447c4d4eefe110 Mon Sep 17 00:00:00 2001 +From b7e175824ed9a26581fa7beb56e0b7c6f75eac6c Mon Sep 17 00:00:00 2001 @@ -9,2 +9,2 @@ Subject: [PATCH] Issue #2209145: Move al - core/lib/Drupal/Core/Path/AliasWhitelist.php | 22 ++---- - core/lib/Drupal/Core/Path/Path.php | 83 ++++++++++++++++++++ + core/lib/Drupal/Core/Path/AliasWhitelist.php | 22 ++--- + core/lib/Drupal/Core/Path/Path.php | 84 ++++++++++++++++++++ @@ -14 +14 @@ Subject: [PATCH] Issue #2209145: Move al - 6 files changed, 98 insertions(+), 50 deletions(-) + 6 files changed, 99 insertions(+), 50 deletions(-) @@ -17 +17 @@ diff --git a/core/core.services.yml b/co -index b238304..43f858d 100644 +index 1d4d172..38ef3c9 100644 @@ -82 +82 @@ diff --git a/core/lib/Drupal/Core/Path/P -index 6802030..8674e36 100644 +index 6802030..802ad41 100644 @@ -85 +85 @@ index 6802030..8674e36 100644 -@@ -246,4 +246,87 @@ public function lookupPathSource($path, $langcode) { +@@ -246,4 +246,88 @@ public function lookupPathSource($path, $langcode) { @@ -91 +91 @@ index 6802030..8674e36 100644 -+ * Checks if alias already exists for a different path. ++ * Checks if alias already exists. @@ -156 +156 @@ index 6802030..8674e36 100644 -+ * Check if any alias exists starting by $path_prefix. ++ * Check if any alias exists starting with $initial_substring. @@ -158,3 +158,4 @@ index 6802030..8674e36 100644 -+ * @param $path_prefix -+ * Path prefix to test against. -+ * @return ++ * @param $initial_substring ++ * Initial path substring to test against. ++ * ++*@return @@ -163 +164 @@ index 6802030..8674e36 100644 -+ public function pathHasMatchingAlias($path_prefix) { ++ public function pathHasMatchingAlias($initial_substring) { @@ -167 +168 @@ index 6802030..8674e36 100644 -+ ->condition('u.source', $this->connection->escapeLike($path_prefix) . '%', 'LIKE') ++ ->condition('u.source', $this->connection->escapeLike($initial_substring) . '%', 'LIKE')