Skip to content

Commit aabf11d

Browse files
Merge pull request #7433 from magento-cia/2.4.5-bugfixes-012822
Bugfixes
2 parents ec2aa11 + 33376fe commit aabf11d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pub/errors/default/page.phtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
7+
// phpcs:ignoreFile
68
?>
79
<!doctype html>
810
<html xmlns="http://www.w3.org/1999/xhtml" >
911
<head>
1012
<title><?= $this->pageTitle ?></title>
11-
<base href="<?= $this->getViewFileUrl() ?>" />
13+
<base href="<?= $this->escaper->escapeHtmlAttr($this->getViewFileUrl()) ?>" />
1214
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
1315
<meta name="robots" content="*"/>
1416
<link rel="stylesheet" href="css/styles.css" type="text/css" />

pub/errors/processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ private function redirectToBaseUrl()
595595
*/
596596
private function isReportIdValid(string $reportId): bool
597597
{
598-
return (bool)preg_match('/[a-fA-F0-9]{64}/', $reportId);
598+
return (bool)preg_match('/^[a-fA-F0-9]{64}$/', $reportId);
599599
}
600600

601601
/**

0 commit comments

Comments
 (0)