Skip to content
This repository has been archived by the owner on May 2, 2020. It is now read-only.

Commit

Permalink
sanitize input
Browse files Browse the repository at this point in the history
  • Loading branch information
SQL-enwiki committed Nov 20, 2019
1 parent f14b7a7 commit efc861d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public_html/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ function checkSorbs( $ip ) {

if( isset( $theip ) ) { $ip = $theip; } else { $ip = $_GET['ip']; }

$ip = ltrim( rtrim ( $ip ) );

if ( $ip == '' || inet_pton( $ip ) === FALSE ) {
echo $twig->render( 'base.html.twig', [
'username' => $username,
Expand Down

0 comments on commit efc861d

Please sign in to comment.