From 90a77ba9d3e97718e9da7d1ee95ece4e756d26b7 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Tue, 27 Dec 2016 18:18:20 +0100 Subject: [ticket/security-203] Allow more characters for branch names SECURITY-203 --- phpBB/phpbb/version_helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB/phpbb') diff --git a/phpBB/phpbb/version_helper.php b/phpBB/phpbb/version_helper.php index e2d90af04a..70a009ed3d 100644 --- a/phpBB/phpbb/version_helper.php +++ b/phpBB/phpbb/version_helper.php @@ -243,7 +243,7 @@ class version_helper * * @param bool $force_update Ignores cached data. Defaults to false. * @param bool $force_cache Force the use of the cache. Override $force_update. - * @return string Version info + * @return array Version info * @throws \RuntimeException */ public function get_versions_matching_stability($force_update = false, $force_cache = false) @@ -350,7 +350,7 @@ class version_helper { foreach ($versions_data as $branch => &$version_data) { - if (!preg_match('/^[0-9]+\.[0-9]+$/', $branch)) + if (!preg_match('/^[0-9a-z\-\.]+$/i', $branch)) { unset($versions_data[$branch]); continue; -- cgit v1.2.1 .0 Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
path: root/perl-install/share/po
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-30 19:25:06 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-30 19:25:06 +0100
commit84f79bf3ccc9a21ed7fe947d265f6061d8e3773d (patch)
tree3a3a0642d18e396cb112cf51060f840a3fe96cd2 /perl-install/share/po
parent40bdb1facddef1d217ab7936aa67105b5ae380d9 (diff)
downloaddrakx-84f79bf3ccc9a21ed7fe947d265f6061d8e3773d.tar
drakx-84f79bf3ccc9a21ed7fe947d265f6061d8e3773d.tar.gz
drakx-84f79bf3ccc9a21ed7fe947d265f6061d8e3773d.tar.bz2
drakx-84f79bf3ccc9a21ed7fe947d265f6061d8e3773d.tar.xz
drakx-84f79bf3ccc9a21ed7fe947d265f6061d8e3773d.zip
sync with code
Diffstat (limited to 'perl-install/share/po')