浏览代码

More small changes and improvements

AaronSpeer 8 年之前
父节点
当前提交
f894fd63c9
共有 1 个文件被更改,包括 3 次插入1 次删除
  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) {