Cleanup uploaded file names for db
This commit is contained in:
parent
ad98fcb1fa
commit
bbafaccb54
@ -23,6 +23,7 @@ if(isset($_POST['username'])) {
|
|||||||
include "head.inc";
|
include "head.inc";
|
||||||
|
|
||||||
if(isset($_FILES)) {
|
if(isset($_FILES)) {
|
||||||
|
$_FILES[photo][name] = preg_replace('/[^a-zA-Z0-9\.]/', '_', $_FILES[photo][name]);
|
||||||
// Check auth here
|
// Check auth here
|
||||||
if(isset($_POST['key']) && password_verify($CONFIG['thissitekey'].$_POST['username'], $_POST['key'])) {
|
if(isset($_POST['key']) && password_verify($CONFIG['thissitekey'].$_POST['username'], $_POST['key'])) {
|
||||||
if(check_bbs_auth($_POST['username'], $_POST['password'])) {
|
if(check_bbs_auth($_POST['username'], $_POST['password'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user