浏览代码

Update index.php

Capitan Cloud 2 年之前
父节点
当前提交
195e5453d1
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      index.php

+ 2 - 1
index.php

@@ -42,7 +42,8 @@
  require FUNCTIONS_PATH . DIRECTORY_SEPARATOR . "func.string.inc";
  require FUNCTIONS_PATH . DIRECTORY_SEPARATOR . "func.various.inc";
 
- $password = filter_input(INPUT_POST, "Password");
+ $password = filter_input(INPUT_POST, "Password")??"";
+ $password = strip_tags($password);
  if ($password !== PHP_STR) {	
    $hash = hash("sha256", $password . APP_SALT, false);