summaryrefslogtreecommitdiff
path: root/modules/g2_import
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-09-18 16:46:15 -0700
committerBharat Mediratta <bharat@menalto.com>2010-09-18 16:46:15 -0700
commita1b1d323af458958c9e06c8160bffb97882b8d41 (patch)
tree76f3d72bbbe20173c385b489f3599d6cded1e8be /modules/g2_import
parent6bb75f623e6dbb58e873b5c7f3f2f3238abe99fd (diff)
When looking for G2 urls in the g2_map, try also swapping spaces for +
in case the url had spaces in it. Fixes ticket #1388.
Diffstat (limited to 'modules/g2_import')
-rw-r--r--modules/g2_import/controllers/g2.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/g2_import/controllers/g2.php b/modules/g2_import/controllers/g2.php
index c529c147..0f51173a 100644
--- a/modules/g2_import/controllers/g2.php
+++ b/modules/g2_import/controllers/g2.php
@@ -45,7 +45,7 @@ class G2_Controller extends Controller {
$where[] = array("g2_url", "like", "%g2_view=$view%");
} // else: Assuming that the first search hit is sufficiently good.
} else if ($path) {
- $where = array(array("g2_url", "=", $path));
+ $where = array(array("g2_url", "IN", array($path, str_replace(" ", "+", $path))));
} else {
throw new Kohana_404_Exception();
}