diff --git a/.github/workflows/close-pull-request.yml b/.github/workflows/close-pull-request.yml
index 4e01f30f..96675f69 100644
--- a/.github/workflows/close-pull-request.yml
+++ b/.github/workflows/close-pull-request.yml
@@ -2,17 +2,23 @@ name: Close Pull Request
on:
pull_request_target:
- types: [opened]
+ types: [opened, reopened]
+
+permissions:
+ pull-requests: write
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Close PR with nice message
- uses: superbrothers/close-pull-request@v3
- with:
- comment: >
+ run: gh pr close ${{ env.ISSUE }} -c "${{ env.COMMENT }}"
+ working-directory: ${{ github.workspace }}
+ env:
+ COMMENT: >
Thank you for your pull request. However, you have submitted your PR on a read-only
- split of `codeigniter4/CodeIgniter4`. This repository, unfortunately, does
+ split of codeigniter4/CodeIgniter4
. This repository, unfortunately, does
not accept PRs. Please submit your PR at https://github.com/codeigniter4/CodeIgniter4
repository.
Thank you.
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ ISSUE: ${{ github.event.pull_request.html_url }}
diff --git a/app/Config/App.php b/app/Config/App.php
index 0a23462b..f598e324 100644
--- a/app/Config/App.php
+++ b/app/Config/App.php
@@ -12,15 +12,10 @@ class App extends BaseConfig
* Base Site URL
* --------------------------------------------------------------------------
*
- * URL to your CodeIgniter root. Typically this will be your base URL,
+ * URL to your CodeIgniter root. Typically, this will be your base URL,
* WITH a trailing slash:
*
* http://example.com/
- *
- * If this is not set then CodeIgniter will try guess the protocol, domain
- * and path to your installation. However, you should always configure this
- * explicitly and never rely on auto-guessing, especially in production
- * environments.
*/
public string $baseURL = 'http://localhost:8080/';
diff --git a/app/Config/Mimes.php b/app/Config/Mimes.php
index 6b06c4e3..99d28e5f 100644
--- a/app/Config/Mimes.php
+++ b/app/Config/Mimes.php
@@ -53,6 +53,8 @@ class Mimes
'lzh' => 'application/octet-stream',
'exe' => [
'application/octet-stream',
+ 'application/vnd.microsoft.portable-executable',
+ 'application/x-dosexec',
'application/x-msdownload',
],
'class' => 'application/octet-stream',
diff --git a/app/Views/errors/html/error_exception.php b/app/Views/errors/html/error_exception.php
index ae46d305..f311d910 100644
--- a/app/Views/errors/html/error_exception.php
+++ b/app/Views/errors/html/error_exception.php
@@ -1,4 +1,9 @@
-
+
@@ -77,16 +82,16 @@
— = esc($row['class'] . $row['type'] . $row['function']) ?>
-
- ( arguments )
-
+
+ (
arguments )
+
getParameters();
}
@@ -189,7 +194,7 @@
-
+
@@ -283,21 +288,11 @@
-
-
-
-
- = esc($h->getName(), 'html') ?> |
- = esc($h->getValueLine(), 'html') ?> |
-
-
+
+
+ = esc($header->getName(), 'html') ?> |
+ = esc($header->getValueLine(), 'html') ?> |
+
@@ -307,7 +302,7 @@
setStatusCode(http_response_code());
?>
@@ -332,7 +327,7 @@
- $value) : ?>
+
= esc($name, 'html') ?> |
= esc($response->getHeaderLine($name), 'html') ?> |
@@ -387,7 +382,7 @@
Displayed at = esc(date('H:i:sa')) ?> —
PHP: = esc(PHP_VERSION) ?> —
- CodeIgniter: = esc(\CodeIgniter\CodeIgniter::CI_VERSION) ?>
+ CodeIgniter: = esc(CodeIgniter::CI_VERSION) ?>
diff --git a/composer.json b/composer.json
index e5221847..cec23ba1 100644
--- a/composer.json
+++ b/composer.json
@@ -13,8 +13,10 @@
"mikey179/vfsstream": "^1.6",
"phpunit/phpunit": "^9.1"
},
- "suggest": {
- "ext-fileinfo": "Improves mime type detection for files"
+ "config": {
+ "optimize-autoloader": true,
+ "preferred-install": "dist",
+ "sort-packages": true
},
"autoload": {
"exclude-from-classmap": [
diff --git a/public/.htaccess b/public/.htaccess
index a5d6c2a5..dbed322f 100644
--- a/public/.htaccess
+++ b/public/.htaccess
@@ -1,5 +1,5 @@
# Disable directory browsing
-Options All -Indexes
+Options -Indexes
# ----------------------------------------------------------------------
# Rewrite engine