mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 11:49:56 +03:00
improves regexes parsing plugins metadata
git-svn-id: http://piwigo.org/svn/trunk@28969 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
dbedfd173f
commit
1633d8ffaa
4 changed files with 21 additions and 19 deletions
|
@ -380,7 +380,7 @@ function autoupdate_plugin(&$plugin)
|
|||
$i++;
|
||||
if ($i < 2) continue; // first lines are typically "<?php" and "/*"
|
||||
|
||||
if (preg_match('#Version: ([\\w.-]+)#', $line, $matches))
|
||||
if (preg_match('/Version:\\s*([\\w.-]+)/', $line, $matches))
|
||||
{
|
||||
$fs_version = $matches[1];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue