Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,356 changes: 0 additions & 1,356 deletions vendor/composer/autoload_classmap.php

Large diffs are not rendered by default.

1,356 changes: 0 additions & 1,356 deletions vendor/composer/autoload_static.php

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2686,17 +2686,17 @@
},
{
"name": "slim/slim",
"version": "4.15.1",
"version_normalized": "4.15.1.0",
"version": "4.15.2",
"version_normalized": "4.15.2.0",
"source": {
"type": "git",
"url": "https://github.com/slimphp/Slim.git",
"reference": "887893516557506f254d950425ce7f5387a26970"
"reference": "e12cb05ca2a14e8f459d019e87a31dc915b80470"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/slimphp/Slim/zipball/887893516557506f254d950425ce7f5387a26970",
"reference": "887893516557506f254d950425ce7f5387a26970",
"url": "https://api.github.com/repos/slimphp/Slim/zipball/e12cb05ca2a14e8f459d019e87a31dc915b80470",
"reference": "e12cb05ca2a14e8f459d019e87a31dc915b80470",
"shasum": ""
},
"require": {
Expand Down Expand Up @@ -2734,7 +2734,7 @@
"php-di/php-di": "PHP-DI is the recommended container library to be used with Slim",
"slim/psr7": "Slim PSR-7 implementation. See https://www.slimframework.com/docs/v4/start/installation.html for more information."
},
"time": "2025-11-21T12:23:44+00:00",
"time": "2026-05-22T08:00:12+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'pinakes/slim-app',
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '663d80bcddb2ee17f02b4e93b2565d3d2e35f7b2',
'reference' => '966f12578067514d0a0443cd31744b05732cb23c',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -247,7 +247,7 @@
'pinakes/slim-app' => array(
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '663d80bcddb2ee17f02b4e93b2565d3d2e35f7b2',
'reference' => '966f12578067514d0a0443cd31744b05732cb23c',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -400,9 +400,9 @@
'dev_requirement' => false,
),
'slim/slim' => array(
'pretty_version' => '4.15.1',
'version' => '4.15.1.0',
'reference' => '887893516557506f254d950425ce7f5387a26970',
'pretty_version' => '4.15.2',
'version' => '4.15.2.0',
'reference' => 'e12cb05ca2a14e8f459d019e87a31dc915b80470',
'type' => 'library',
'install_path' => __DIR__ . '/../slim/slim',
'aliases' => array(),
Expand Down
13 changes: 12 additions & 1 deletion vendor/slim/slim/Slim/Error/Renderers/HtmlErrorRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@

use function get_class;
use function htmlentities;
use function htmlspecialchars;
use function sprintf;

use const ENT_QUOTES;
use const ENT_SUBSTITUTE;

/**
* Default Slim application HTML Error Renderer
*/
Expand All @@ -29,7 +33,12 @@ public function __invoke(Throwable $exception, bool $displayErrorDetails): strin
$html .= '<h2>Details</h2>';
$html .= $this->renderExceptionFragment($exception);
} else {
$html = "<p>{$this->getErrorDescription($exception)}</p>";
$description = htmlspecialchars(
$this->getErrorDescription($exception),
ENT_QUOTES | ENT_SUBSTITUTE,
'UTF-8'
);
$html = "<p>{$description}</p>";
}

return $this->renderHtmlBody($this->getErrorTitle($exception), $html);
Expand All @@ -56,6 +65,8 @@ private function renderExceptionFragment(Throwable $exception): string

public function renderHtmlBody(string $title = '', string $html = ''): string
{
$title = htmlspecialchars($title, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');

return sprintf(
'<!doctype html>' .
'<html lang="en">' .
Expand Down
3 changes: 1 addition & 2 deletions vendor/slim/slim/Slim/Routing/RouteCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ public function removeNamedRoute(string $name): RouteCollectorInterface
{
$route = $this->getNamedRoute($name);

/** @psalm-suppress PossiblyNullArrayOffset */
unset($this->routesByName[$route->getName()], $this->routes[$route->getIdentifier()]);
unset($this->routesByName[$name], $this->routes[$route->getIdentifier()]);
return $this;
}

Expand Down
Loading