mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-12 02:25:18 +02:00
[ticket/security-203] Allow more characters for branch names
SECURITY-203
This commit is contained in:
parent
ad251e4590
commit
90a77ba9d3
@ -243,7 +243,7 @@ class version_helper
|
|||||||
*
|
*
|
||||||
* @param bool $force_update Ignores cached data. Defaults to false.
|
* @param bool $force_update Ignores cached data. Defaults to false.
|
||||||
* @param bool $force_cache Force the use of the cache. Override $force_update.
|
* @param bool $force_cache Force the use of the cache. Override $force_update.
|
||||||
* @return string Version info
|
* @return array Version info
|
||||||
* @throws \RuntimeException
|
* @throws \RuntimeException
|
||||||
*/
|
*/
|
||||||
public function get_versions_matching_stability($force_update = false, $force_cache = false)
|
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)
|
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]);
|
unset($versions_data[$branch]);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user