Skip to content

Commit

Permalink
deploy: 32e9fbc
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq committed Feb 11, 2025
1 parent 4369909 commit 0f7ac39
Show file tree
Hide file tree
Showing 7 changed files with 182 additions and 124 deletions.
92 changes: 54 additions & 38 deletions classes/rex-article.html

Large diffs are not rendered by default.

84 changes: 50 additions & 34 deletions classes/rex-category.html

Large diffs are not rendered by default.

112 changes: 72 additions & 40 deletions classes/rex-structure-element.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use voku\helper\AntiXSS;
use enshrined\svgSanitize\Sanitizer;

/**
* @package redaxo\mediapool
Expand Down Expand Up @@ -389,14 +389,7 @@ final class rex_media_service

$content = rex_type::notNull(rex_file::get($path));

$antiXss = new AntiXSS();
$antiXss->removeNeverAllowedRegex(['&lt;!--', '&lt;!--$1--&gt;']);
$antiXss->removeEvilAttributes(['style', 'xlink:href']);
$antiXss->removeEvilHtmlTags(['style', 'svg', 'title']);

$content = $antiXss->xss_clean($content);
$content = preg_replace('/^\s*&lt;\?xml(.*?)\?&gt;/', '<?xml$1?>', $content);
$content = preg_replace('/&lt;!DOCTYPE(.*?)>/', '<!DOCTYPE$1>', $content);
$content = (new Sanitizer())->sanitize($content);

rex_file::put($path, $content);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ abstract class rex_structure_element
* Returns Object Value.
*
* @param string $value
*
* @return string|int|null
* @psalm-taint-source input
*/
public function getValue($value)
{
Expand Down Expand Up @@ -334,6 +334,7 @@ abstract class rex_structure_element
* Returns the name of the article.
*
* @return string
* @psalm-taint-source input
*/
public function getName()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $context = new rex_context([
]);

// ----- Titel anzeigen
echo rex_view::title(rex_i18n::msg('content') . ': ' . $OOArt->getName(), '');
echo rex_view::title(rex_i18n::msg('content') . ': ' . rex_escape($OOArt->getName()), '');

// ----- Languages
echo rex_view::clangSwitchAsButtons($context);
Expand Down
2 changes: 1 addition & 1 deletion files/redaxo-main/redaxo/src/core/boot.php.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ require_once rex_path::core('functions/function_rex_globals.php');
require_once rex_path::core('functions/function_rex_other.php');

// ----------------- VERSION
rex::setProperty('version', '5.18.1');
rex::setProperty('version', '5.18.2');

$cacheFile = rex_path::coreCache('config.yml.cache');
$configFile = rex_path::coreData('config.yml');
Expand Down

0 comments on commit 0f7ac39

Please sign in to comment.