|
|
@ -18,6 +18,9 @@ namespace FLocal.IISHandler.handlers.request { |
|
|
|
if(title == "") { |
|
|
|
if(title == "") { |
|
|
|
throw new FLocalException("Title is empty"); |
|
|
|
throw new FLocalException("Title is empty"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(title.Length > 100) { |
|
|
|
|
|
|
|
throw new FLocalException("Title is too long"); |
|
|
|
|
|
|
|
} |
|
|
|
return title; |
|
|
|
return title; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -26,6 +29,9 @@ namespace FLocal.IISHandler.handlers.request { |
|
|
|
if(body == "") { |
|
|
|
if(body == "") { |
|
|
|
throw new FLocalException("Body is empty"); |
|
|
|
throw new FLocalException("Body is empty"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(body.Length > 30000) { |
|
|
|
|
|
|
|
throw new FLocalException("Body is too long"); |
|
|
|
|
|
|
|
} |
|
|
|
return body; |
|
|
|
return body; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|