Skip to content

Commit

Permalink
Fixed #14977
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed May 13, 2024
1 parent 7723ede commit e63d1d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Fixed a SQL error that could occur when applying or rebuilding the project config.
- Fixed a bug where adjacent selected table rows were getting extra spacing in Firefox.
- Fixed a SQL error that could occur when creating revisions after garbage collection was run. ([#14309](https://github.com/craftcms/cms/issues/14309))
- Fixed a bug where the `serve` command wasn’t serving paths with non-ASCII characters. ([#14977](https://github.com/craftcms/cms/issues/14977))

## 4.9.2 - 2024-05-07

Expand Down
8 changes: 3 additions & 5 deletions bootstrap/router.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<?php

// Allow the PHP development server to route requests to static files
$parts = parse_url($_SERVER['REQUEST_URI'] ?? '');
if (!empty($parts['path'])) {
if (realpath($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $parts['path'])) {
return false;
}
$path = parse_url($_SERVER['REQUEST_URI'] ?? '', PHP_URL_PATH);
if ($path && realpath($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . urldecode($path))) {
return false;
}

// Yii expects the SCRIPT_FILENAME to come out of the document root or the Request object
Expand Down

0 comments on commit e63d1d7

Please sign in to comment.