From 4a2674440f5bfa18e77ba6c27390e55eea48d078 Mon Sep 17 00:00:00 2001 From: d47081 Date: Fri, 15 Jul 2022 19:49:51 +0300 Subject: [PATCH] unify data types --- public/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/index.php b/public/index.php index 2c3ac01..09ca3f2 100755 --- a/public/index.php +++ b/public/index.php @@ -4,9 +4,9 @@ require_once('../config.php'); require_once('../library/icon.php'); require_once('../library/sqlite.php'); -$query = isset($_GET['q']) ? preg_replace('/[^\w\s]+/u', '', $_GET['q']) : false; -$ns = isset($_GET['ns']) ? preg_replace('/[^a-zA-Z0-9]+/', '', $_GET['ns']) : false; -$tx = isset($_GET['tx']) ? preg_replace('/[^a-zA-Z0-9]+/', '', $_GET['tx']) : false; +$query = isset($_GET['q']) ? preg_replace('/[^\w\s]+/u', '', $_GET['q']) : ''; +$ns = isset($_GET['ns']) ? preg_replace('/[^a-zA-Z0-9]+/', '', $_GET['ns']) : ''; +$tx = isset($_GET['tx']) ? preg_replace('/[^a-zA-Z0-9]+/', '', $_GET['tx']) : ''; $page = (int) isset($_GET['page']) ? $_GET['page'] : 0; $rss = isset($_GET['rss']) ? true : false;