From c6d2e26975e228a58c24611f1546d70b281814f6 Mon Sep 17 00:00:00 2001 From: edson Date: Wed, 15 Jun 2022 13:05:50 +0800 Subject: [PATCH 1/2] Bug 404 Edson 201938330189 --- Courses.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Courses.php b/Courses.php index 2ccbbff..a5cfa7c 100644 --- a/Courses.php +++ b/Courses.php @@ -555,6 +555,7 @@ if( $_SESSION['user_type']=="Student") if(!empty($_GET["search"]) || !empty($_GET["faculty"])) { $search = trim(mysqli_real_escape_string($con, $_GET["search"])); + $search=strtoupper($_GET['search']); $faculty = mysqli_real_escape_string($con, $_GET["faculty"]); -- 2.17.1 From 43c72592072eba2ba9859f92c25ebd1dd284ff73 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Fri, 17 Jun 2022 23:03:20 +0800 Subject: [PATCH 2/2] Courses.php: add spaces around =. --- Courses.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Courses.php b/Courses.php index e2f68f0..e36d611 100644 --- a/Courses.php +++ b/Courses.php @@ -558,7 +558,7 @@ if( $_SESSION['user_type']=="Student") if(!empty($_GET["search"]) || !empty($_GET["faculty"])) { $search = trim(mysqli_real_escape_string($con, $_GET["search"])); - $search=strtoupper($_GET['search']); + $search = strtoupper($_GET['search']); $faculty = mysqli_real_escape_string($con, $_GET["faculty"]); // the user has not entered something under "Find course by Code" -- 2.17.1