Skip to content

Conversation

@Whizzkid-FG
Copy link

@Whizzkid-FG Whizzkid-FG commented Dec 28, 2020

It took me more than 3 nights to locate the place (in the source code) that causes this 'whitespace' problem. After that, it took me just less than a minute to fix it.

Before bugfix

557 $search=$_GET["search"];

After bug fixed

557 $search=trim($_GET["search"]);

"trim()" is used to remove whitespace, there are three functions to use depending on the problem.
ltrim() function-[used for removing whitespace before a string]

rtrim() function-[used for removing whitespace after a string]

trim() function-[used for removing whitespace both before and after a string]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants