]> jfr.im git - irc/rizon/znc.git/commitdiff
[cert module] Allow \r\n to be inside a certificate when uploading with the web inter...
authorKyle Fuller <redacted>
Tue, 16 Aug 2011 21:19:43 +0000 (22:19 +0100)
committerKyle Fuller <redacted>
Tue, 16 Aug 2011 21:19:43 +0000 (22:19 +0100)
Thanks to Robby for reporting

modules/cert.cpp

index 07fb5a9778076de7bd77f28768d468f5ad52197e..d65b114ff7bfce301c11244909d102d219b41484 100644 (file)
@@ -69,7 +69,7 @@ public:
                        CFile fPemFile(PemFile());
 
                        if (fPemFile.Open(O_WRONLY | O_TRUNC | O_CREAT)) {
-                               fPemFile.Write(WebSock.GetParam("cert"));
+                               fPemFile.Write(WebSock.GetParam("cert", true, ""));
                                fPemFile.Close();
                        }