Fix checks for "<!DOCTYPE" instead of "DOCTYPE"

This commit is contained in:
XeR
2015-06-08 10:31:36 +02:00
parent baec1b6f26
commit 53cab34a97

View File

@@ -303,7 +303,7 @@ class StorageHTTPServerHandler(BaseHTTPServer.BaseHTTPRequestHandler):
ret = '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body>'
if "DOCTYPE" in post.upper():
if "<!DOCTYPE" in post.upper():
logger.log(logging.ERROR, "User tried to redefine a DOCTYPE")
return