mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
@fix: Fixes empty tree searches.
This commit is contained in:
@@ -271,6 +271,10 @@ class Repository extends BaseRepository
|
||||
|
||||
public function searchTree($query, $branch)
|
||||
{
|
||||
if(empty($query)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$query = escapeshellarg($query);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user