Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Fix widgetStyle escape is not applied
Browse files Browse the repository at this point in the history
  • Loading branch information
YJSoft committed Jul 6, 2023
1 parent 5cd61c1 commit a4dc92b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/widget/widget.model.php
Expand Up @@ -263,7 +263,7 @@ function getWidgetInfo($widget)
*/
function getWidgetStyleInfo($widgetStyle)
{
$widget = escape($widgetStyle);
$widgetStyle = preg_replace('/[^a-zA-Z0-9-_]/', '', $widgetStyle);
$widgetStyle_path = $this->getWidgetStylePath($widgetStyle);
if(!$widgetStyle_path) return;
$xml_file = sprintf("%sskin.xml", $widgetStyle_path);
Expand Down

0 comments on commit a4dc92b

Please sign in to comment.