Merge branch 'master' into develop

This commit is contained in:
Lucas Bartholemy 2021-07-14 14:10:29 +02:00
commit 6bf2c8d96a
2 changed files with 5 additions and 1 deletions

View File

@ -8,6 +8,7 @@ HumHub Changelog
- Fix #5107: Fix captcha client validation after request new code
- Fix #22: Fix misplaced OEmbed provider buttons on general settings form
- Fix #5130: Don't require type for first param of the function ProsemirrorRichText::replaceLinkExtension()
- Fix #5155: Open basedir restriction error in with PHP 7.4.21/8.0.8
1.8.2 (April 26, 2021)

View File

@ -339,8 +339,11 @@ class View extends \yii\web\View
{
if (strpos($url, '?') === false) {
$file = str_replace('@web', '@webroot', $url);
$file = Yii::getAlias($file);
if (substr($file, 0, 1) === '/') {
$file = '@webroot' . $file;
}
$file = Yii::getAlias($file);
if (file_exists($file)) {
$url .= '?v=' . filemtime($file);
} else {