Skip to content
Snippets Groups Projects
Commit fd6c1937 authored by Sibidharan's avatar Sibidharan :speech_balloon:
Browse files

Fix MySQLi bugs & Added API documentation as Postman export

parent 28de539c
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@
}
}else{
$data = mysqli_real_escape_string(Database::getConnection(), $data);
//$data = trim(stripslashes($data));
//$data = trim(stripslashes($data)); //This reverses the effect of mysqli_real_escape_string so dont use this unless you know what you are doing.
$data = strip_tags($data);
$clean_input = trim($data);
}
......
......@@ -24,7 +24,7 @@ class Notes extends Share{
$this->data = mysqli_fetch_assoc($result);
$this->id = $this->data['id'];
} else {
throw new Exception("Note not found: ".mysqli_error($this->db));
throw new Exception("Note not found");
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment