mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 11:10:57 +01:00
Fixes #288
This commit is contained in:
@@ -314,7 +314,11 @@ class Repository extends BaseRepository
|
||||
}
|
||||
|
||||
if (($pos = strrpos($file[4], '.')) !== false) {
|
||||
$data['extensions'][] = substr($file[4], $pos);
|
||||
$extension = substr($file[4], $pos);
|
||||
|
||||
if (($pos = strrpos($extension, '/')) === false) {
|
||||
$data['extensions'][] = $extension;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user