Skip to content
Snippets Groups Projects
Commit 83f835b5 authored by Frédéric G. Marand's avatar Frédéric G. Marand Committed by Frédéric G. Marand
Browse files

git commit -m 'Issue #3370956 by fgm, Harshita mehna: Do not allow core: 8.x...

git commit -m 'Issue #3370956 by fgm, Harshita mehna: Do not allow core: 8.x in info.yml file' --author="Frédéric G. Marand <14036-fgm@users.noreply.drupalcode.org>"
parent fcd2fe67
No related branches found
No related tags found
No related merge requests found
......@@ -280,7 +280,7 @@ class UrlReplaceFilter extends FilterBase implements ContainerFactoryPluginInter
* {@inheritdoc}
*/
public function process($text, $langcode) {
$settings = unserialize($this->settings['replacements']);
$settings = unserialize($this->settings['replacements'], ['allowed_classes' => FALSE]);
foreach ($settings as $setting) {
if (!empty($setting['original'])) {
$pattern = '!((<a\s[^>]*href)|(<img\s[^>]*src))\s*=\s*"' . preg_quote($setting['original']) . '!iU';
......
name: "URL Replace Filter"
type: module
name: "URL Replace Filter"
description: "Allows administrators to replace base URLs in &lt;img&gt; and &lt;a&gt; elements."
package: OSInet
core: 8.x
php: 7.0
configure: filter.admin_overview
core_version_requirement: ^8 || ^9 || ^10
dependencies:
- drupal:filter
package: Content display
core_version_requirement: ^9 || ^10
configure: filter.admin_overview
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment