diff --git a/server/app/common.php b/server/app/common.php index c169644f04cb1d57440e4ea1ea89da335778556b..28d64b7d86245c12945b79958f8dbb395f745b29 100644 --- a/server/app/common.php +++ b/server/app/common.php @@ -209,6 +209,9 @@ function clear_file_domain($content) */ function get_file_domain($content) { + if (empty($content)) { + return $content; + } $fileUrl = FileService::getFileUrl(); $imgPreg = '/()/is'; $videoPreg = '/(