aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_plugins.inc.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-07-06 14:05:05 +0000
committermistic100 <mistic@piwigo.org>2014-07-06 14:05:05 +0000
commit1633d8ffaa38edb8abb530ef4e28cdc4ee816923 (patch)
treed6768d721c437d1494a9c379c2bd667ae70ea4d3 /include/functions_plugins.inc.php
parentdbedfd173f087b7b7d6d1aefde09922d986c8429 (diff)
improves regexes parsing plugins metadata
git-svn-id: http://piwigo.org/svn/trunk@28969 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_plugins.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions_plugins.inc.php b/include/functions_plugins.inc.php
index 0ba15be2b..b980390a8 100644
--- a/include/functions_plugins.inc.php
+++ b/include/functions_plugins.inc.php
@@ -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];
}