Add php error handling

This commit is contained in:
2023-01-26 14:51:47 +01:00
parent 17327006db
commit 03dd126ca7
5 changed files with 54 additions and 72 deletions
+2 -3
View File
@@ -157,9 +157,8 @@ int mime_is_text(const char *restrict type) {
streq(type_parsed, "application/x-javascript");
}
int strcpy_rem_webroot(char *dst, const char *src, long len, const char *webroot) {
memcpy(dst, src, len);
dst[len] = 0;
int strcpy_rem_webroot(char *dst, const char *src, const char *webroot) {
strcpy(dst, src);
if (webroot == NULL)
return 0;