Pārlūkot izejas kodu

More small changes and improvements

AaronSpeer 8 gadi atpakaļ
vecāks
revīzija
f894fd63c9
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      index.php

+ 3 - 1
index.php

@@ -125,7 +125,9 @@ if ($addr[0] == ""){
 else{
   $view = "blank";
 
-  $sql = "SELECT destination FROM url WHERE source = '$addr[0]'";
+  $url0 = sanitise_data($addr[0]);
+
+  $sql = "SELECT destination FROM url WHERE source = '$url0'";
   $result = $conn->query($sql);
 
   if ($result->num_rows > 0) {