facebooc icon indicating copy to clipboard operation
facebooc copied to clipboard

Yet another Facebook clone written in C

Results 11 facebooc issues
Sort by recently updated
recently updated
newest added

The function "[exit](http://pubs.opengroup.org/onlinepubs/9699919799/functions/exit.html)" does not belong to the list of [async-signal-safe functions](https://www.securecoding.cert.org/confluence/display/c/SIG30-C.+Call+only+asynchronous-safe+functions+within+signal+handlers). I guess that a different program design will be needed for your function "[sig](https://github.com/jserv/facebooc/blob/7ff378def4b3d48f66e52c4340320fdefcb420fd/src/main.c#L21)".

We do not need escape html tag when create a new posts because that will break html syntax in the post field (or in the WYSIWYG editor in the future).

By exposing the interface of `routeHandle`, the server won't call the handler directly. Thus, in this PR, I separate the route matching component. In the future, one may combine some...

Would you like to add more error handling for return values from functions like the following? - [ftell](http://pubs.opengroup.org/onlinepubs/9699919799/functions/ftell.html) ⇒ [templateRender](https://github.com/jserv/facebooc/blob/cdfaa9ff7ccb065cdca79f4ec91a990d50149092/src/template.c#L32) - [malloc](http://pubs.opengroup.org/onlinepubs/9699919799/functions/malloc.html) ⇒ [serverNew](https://github.com/jserv/facebooc/blob/6e5505b4e9620822dcbd751e36a007936ebc9401/src/server.c#L63)

E.g.: Christopher Bayliss This is the coolest thing ever!%0D %0D Really Like - Tue May 17 01:19:39 2016 GMT

``` fprintf(stdout, "%s\n",buff); Request *req = requestNew(buff); ``` Safari 9.1 ``` POST /login/ HTTP/1.1 Host: 127.0.0.1:8080 Content-Type: application/x-www-form-urlencoded Origin: http://127.0.0.1:8080 Content-Length: 34 Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 User-Agent: Mozilla/5.0 (Macintosh; Intel...

https://github.com/jserv/facebooc/blob/ab6a0fed7dc797ece722ba81995f302e896b1a28/src/request.c#L209 [RFC-2616 section 4.1](https://www.rfc-editor.org/rfc/rfc2616.html#section-4.1) says that the HTTP header is dynamic length until an empty newline with "". In other words, this is not a correct way to fetch the...

I encountered the 400 bad request error when I submitted the sign-up information while running the server on WSL-2. First I thought it was about accessment issue from wsl-2 to...

on running the programme it says; starting facebooc service... then listening on port 8080 and thats it. it doesnt go further

multi stage dockerfile + lb service