Sanitize log message #109

wants to merge 2 commits into


None yet
2 participants

nicad commented Jun 15, 2012

Add protection against non string fields being logged. It can happen when using an authorization header with custom scheme (i.e. not handled by YAWS). The user name ends up being the atom undefined and would result into a badarg error from file:write() and also a port error on FreeBSD.

nicad added some commits Jun 13, 2012

log debug messages to the error_logger given that stdout is not avail…
…able in embedded mode. Default to a tcp queue length backlog of 1024 (instead of 5 git diff)
make sure to always send proper strings to file:write() while logging…
…, failure to do so on FreeBSD could result into a emulator Bad value on output port 'efile' if bad data makes it there, say an atom

This comment has been minimized.

Show comment
Hide comment

vinoski Jun 15, 2012


Got it, thanks for the help.


vinoski commented Jun 15, 2012

Got it, thanks for the help.

@vinoski vinoski closed this Jun 15, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment