From 7f9594b8c7d7799f2e5f89328bd5981410db8cf0 Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Fri, 7 Jul 2023 21:53:17 +0200 Subject: fix many "Only booleans are allowed in an if condition" (#5501) * fix many "Only booleans are allowed in an if condition" * Update cli/create-user.php Co-authored-by: Alexandre Alapetite * Update cli/i18n/I18nUsageValidator.php Co-authored-by: Alexandre Alapetite * Fix several regressions and other minor things * Fix another regression * Update lib/http-conditional.php Co-authored-by: Alexandre Alapetite --------- Co-authored-by: Luc Co-authored-by: Alexandre Alapetite --- p/api/greader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p/api/greader.php') diff --git a/p/api/greader.php b/p/api/greader.php index b70a1f3f3..e42736869 100644 --- a/p/api/greader.php +++ b/p/api/greader.php @@ -1069,7 +1069,7 @@ final class GReaderAPI { $include_target = $pathInfos[7]; if ($include_target != '' && !ctype_digit($include_target)) { $include_target = empty($_SERVER['REQUEST_URI']) ? '' : $_SERVER['REQUEST_URI']; - if (preg_match('#/reader/api/0/stream/contents/feed/([A-Za-z0-9\'!*()%$_.~+-]+)#', $include_target, $matches)) { + if (preg_match('#/reader/api/0/stream/contents/feed/([A-Za-z0-9\'!*()%$_.~+-]+)#', $include_target, $matches) === 1) { $include_target = urldecode($matches[1]); } else { $include_target = ''; -- cgit v1.2.3