mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[prep-release-3.2.6] Update Changelog and add missing preg_match
This commit is contained in:
parent
d54c43ae8f
commit
2575b499a3
2 changed files with 3 additions and 2 deletions
|
@ -151,7 +151,7 @@
|
|||
<ul>
|
||||
<li>[SECURITY-228] - Require form token in login_box</li>
|
||||
<li>[SECURITY-233] - SMTP auth data shouldn't be cached</li>
|
||||
<li>[SECURITY-234] - Main website URL can be set to JS URL in Admin Control Panel</li>
|
||||
<li>[SECURITY-234] - Main website URL in Admin Control Panel should not support JS URLs</li>
|
||||
</ul>
|
||||
|
||||
<a name="v325"></a><h3>Changes since 3.2.5</h3>
|
||||
|
|
|
@ -148,7 +148,8 @@ class upload extends \phpbb\avatar\driver\driver
|
|||
|
||||
// Do not allow specifying the port (see RFC 3986) or IP addresses
|
||||
// remote_upload() will do its own check for allowed filetypes
|
||||
if (preg_match('@^(http|https|ftp)://[^/:?#]+:[0-9]+[/:?#]@i', $url) ||
|
||||
if (!preg_match('#^(http|https|ftp)://(?:(.*?\.)*?[a-z0-9\-]+?\.[a-z]{2,4}|(?:\d{1,3}\.){3,5}\d{1,3}):?([0-9]*?).*?\.('. implode('|', $this->allowed_extensions) . ')$#i', $url) ||
|
||||
preg_match('@^(http|https|ftp)://[^/:?#]+:[0-9]+[/:?#]@i', $url) ||
|
||||
preg_match('#^(http|https|ftp)://(?:(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])#i', $url) ||
|
||||
preg_match('#^(http|https|ftp)://(?:(?:(?:[\dA-F]{1,4}:){6}(?:[\dA-F]{1,4}:[\dA-F]{1,4}|(?:(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])))|(?:::(?:[\dA-F]{1,4}:){0,5}(?:[\dA-F]{1,4}(?::[\dA-F]{1,4})?|(?:(?:\d{1,2}|1\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