Noted there was a problem with mod_security rejecting uploads because of an invalid boundary.
The cause is that mod_security is looking for the correct end-of-line terminator of CRLF, which is correct per the specifications in RFC1867. This patch updates the multi-part POST support in Gallery2Uploader.m to send \r\n instead of just \n.
Patches Gallery2Uploader.m to fix problems w/ mod_security and improve multi-part form compliance.