summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--README.md2
-rw-r--r--application/controllers/Main.php2
3 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 78b0f070a..e3d35900e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
This file lists major, incompatible or otherwise important changes, you should look at it after every update.
NEXT
+ - BREAKING CHANGE: Minimum requried PHP version is now >= 7
+ - More PHP 8.1 compatibility fixes
3.6.2 2022-01-09
- Use python3 instead of python for Ubuntu 20.04 and Debian 11 compatibility.
diff --git a/README.md b/README.md
index 7a3793424..60927726f 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@ You can also open a pull request on [GitHub](https://github.com/Bluewind/filebin
## Dependencies
-* PHP >=5.5 with the following modules
+* PHP >=7.0 with the following modules
* gd for thumbnail generation
* exif for thumbnail generation
* phar for tarball creation
diff --git a/application/controllers/Main.php b/application/controllers/Main.php
index df3e8ad78..d1b0cbbec 100644
--- a/application/controllers/Main.php
+++ b/application/controllers/Main.php
@@ -98,7 +98,7 @@ class Main extends MY_Controller {
{
session_write_close();
$id = $this->uri->segment(1);
- $lexer = urldecode($this->uri->segment(2));
+ $lexer = urldecode($this->uri->segment(2) ?? '');
$is_multipaste = false;
if ($this->mmultipaste->id_exists($id)) {