Skip to content

Commit 48cf435

Browse files
committed
Panel: Trim whitespaces from Game ID text input
1 parent d1d6e5f commit 48cf435

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/inc.panel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,8 +758,8 @@ function mergeGames() : void
758758
{
759759
global $a_status, $get;
760760

761-
$gid1 = isset($_POST['gid1']) && is_string($_POST['gid1']) ? $_POST['gid1'] : "";
762-
$gid2 = isset($_POST['gid2']) && is_string($_POST['gid2']) ? $_POST['gid2'] : "";
761+
$gid1 = isset($_POST['gid1']) && is_string($_POST['gid1']) ? trim($_POST['gid1']) : "";
762+
$gid2 = isset($_POST['gid2']) && is_string($_POST['gid2']) ? trim($_POST['gid2']) : "";
763763

764764
$form = new HTMLForm("", "POST");
765765
$form->add_input(new HTMLInput("gid1", "text", $gid1, "Game ID 1"));

0 commit comments

Comments
 (0)