Révision 2b7fb769
Ajouté par Renato Botelho il y a plus de 9 ans
etc/inc/pkg-utils.inc | ||
---|---|---|
293 | 293 |
$depend_file = substr(strrchr($item['item']['0'], '/'),1); // Strip URLs down to filenames. |
294 | 294 |
$depend_name = substr(substr($depend_file,0,strpos($depend_file,".")+1),0,-1); // Strip filename down to dependency name. |
295 | 295 |
if (($filetype != "all") && (!preg_match("/{$filetype}/i", $depend_file))) |
296 |
if (($filetype != "all") && (strtolower(substr($depend_file, -strlen($filetype))) != strtolower($filetype))) |
|
296 | 297 |
continue; |
297 | 298 |
if ($item['prefix'] != "") |
298 | 299 |
$prefix = $item['prefix']; |
Formats disponibles : Unified diff
Do not use regex to check filetype to avoid being wrong since . is a regex metachar. It fixes #3817