From 31c93ec0a05872e520236903431c0339799ab110 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 30 Sep 2023 19:10:44 +0700 Subject: [PATCH] Added support bmp images in BBCode (#279) * Added support bmp images in BBCode * Update CHANGELOG.md --- CHANGELOG.md | 1 + library/includes/bbcode.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60e3bb77..12d4c372 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ **Merged pull requests:** - Release v2.1.5-2023.09 🎉 +- Added support bmp images in BBCode [\#279](https://github.com/torrentpier/torrentpier-lts/pull/279) ([belomaxorka](https://github.com/belomaxorka)) - Added support webp images in BBCode [\#278](https://github.com/torrentpier/torrentpier-lts/pull/278) ([belomaxorka](https://github.com/belomaxorka)) - Enhancements for text editor [\#277](https://github.com/torrentpier/torrentpier-lts/pull/277) ([belomaxorka](https://github.com/belomaxorka)) - Added missing !defined('BB_ROOT') check [\#274](https://github.com/torrentpier/torrentpier-lts/pull/274) ([belomaxorka](https://github.com/belomaxorka)) diff --git a/library/includes/bbcode.php b/library/includes/bbcode.php index 317904fa..5599f922 100644 --- a/library/includes/bbcode.php +++ b/library/includes/bbcode.php @@ -496,7 +496,7 @@ class bbcode function init_replacements () { $tpl = $this->tpl; - $img_exp = '(https?:)?//[^\s\?&;=\#\"<>]+?\.(jpg|jpeg|gif|png|webp)([a-z0-9/?&%;][^\[\]]*)?'; + $img_exp = '(https?:)?//[^\s\?&;=\#\"<>]+?\.(jpg|jpeg|gif|png|webp|bmp)([a-z0-9/?&%;][^\[\]]*)?'; $email_exp = '[a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+'; $this->preg = array(