Added support bmp images in BBCode (#279)

* Added support bmp images in BBCode

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-09-30 19:10:44 +07:00 committed by GitHub
parent b31a2df167
commit 31c93ec0a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
**Merged pull requests:** **Merged pull requests:**
- Release v2.1.5-2023.09 🎉 - 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)) - 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)) - 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)) - Added missing !defined('BB_ROOT') check [\#274](https://github.com/torrentpier/torrentpier-lts/pull/274) ([belomaxorka](https://github.com/belomaxorka))

View File

@ -496,7 +496,7 @@ class bbcode
function init_replacements () function init_replacements ()
{ {
$tpl = $this->tpl; $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]+'; $email_exp = '[a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+';
$this->preg = array( $this->preg = array(