This commit is not tested on a Windows machine. I however checked the same behavior with UNIX paths and a client name resembling path traversal path. With this change, an exception is thrown if the full path does not start with the log directory path.