1
0

fixed some API methods

This commit is contained in:
2019-12-29 00:02:38 +01:00
parent 3f4cc7875d
commit 6e895484d7
7 changed files with 29 additions and 28 deletions

View File

@@ -51,6 +51,14 @@ function httpError($errorcode, $message)
die();
}
function httpDie($errorcode, $message)
{
ob_clean();
http_response_code($errorcode);
die($message);
}
function destructiveUrlEncode($str) {
$str = str_replace(' ', '_', $str);
$str = str_replace('+', '_', $str);