Permalink
Browse files

Fix events when filtering by URL

  • Loading branch information...
1 parent b117ba4 commit 362f7f8040ca7b5bae066e8349a40230245e448b @cdujeu cdujeu committed Jun 17, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/plugins/feed.sql/class.AJXP_SqlFeedStore.php
@@ -126,7 +126,7 @@ public function loadEvents($filterByRepositories, $filterByPath, $userGroup, $of
if(count($masks)){
$pathesOr = array();
foreach($masks as $mask){
- $filterLike = "://".$repoId.rtrim($mask, "/") . "/";
+ $filterLike = "://%@".$repoId.rtrim($mask, "/") . "/";
$pathesOr[] = array("[index_path] LIKE %~like~", $filterLike);
}
if(count($pathesOr)){
@@ -153,7 +153,7 @@ public function loadEvents($filterByRepositories, $filterByPath, $userGroup, $of
if($filterByPath[strlen($filterByPath)-1]=='/'){
//$groupByClause = " GROUP BY [index_path] ";
}
- $index_path = "%://".$filterByRepositories[0].$filterByPath."%";
+ $index_path = "%://%@".$filterByRepositories[0].$filterByPath."%";
$res = dibi::query("SELECT * FROM [ajxp_feed] WHERE [etype] = %s
AND
( %or )

0 comments on commit 362f7f8

Please sign in to comment.