From 37bd983bf0cc956a6c814f161bec1061e9cc9572 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 10 Apr 2022 12:00:58 +0200 Subject: feat(PHP8.1)!: Fix deprecated null arguments BREAKING CHANGE: Syntax raises minimal PHP version to 7.0 Signed-off-by: Florian Pritz --- NEWS | 2 ++ README.md | 2 +- application/controllers/Main.php | 2 +- 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)) { -- cgit v1.2.3-24-g4f1b