Minor update

This commit is contained in:
stamparm 2013-02-26 12:50:43 +01:00
parent 0835fb2e0f
commit ecbcd4afe6

View File

@ -108,6 +108,7 @@ from lib.core.settings import NULL
from lib.core.settings import ORACLE_ALIASES from lib.core.settings import ORACLE_ALIASES
from lib.core.settings import PARAMETER_SPLITTING_REGEX from lib.core.settings import PARAMETER_SPLITTING_REGEX
from lib.core.settings import PGSQL_ALIASES from lib.core.settings import PGSQL_ALIASES
from lib.core.settings import PROBLEMATIC_CUSTOM_INJECTION_PATTERNS
from lib.core.settings import SITE from lib.core.settings import SITE
from lib.core.settings import SQLITE_ALIASES from lib.core.settings import SQLITE_ALIASES
from lib.core.settings import SUPPORTED_DBMS from lib.core.settings import SUPPORTED_DBMS
@ -310,6 +311,9 @@ def _feedTargetsDict(reqFile, addedTargetUrls):
elif key not in (HTTPHEADER.PROXY_CONNECTION, HTTPHEADER.CONNECTION): elif key not in (HTTPHEADER.PROXY_CONNECTION, HTTPHEADER.CONNECTION):
conf.httpHeaders.append((getUnicode(key), getUnicode(value))) conf.httpHeaders.append((getUnicode(key), getUnicode(value)))
if CUSTOM_INJECTION_MARK_CHAR in re.sub(PROBLEMATIC_CUSTOM_INJECTION_PATTERNS, "", value or ""):
params = True
data = data.rstrip("\r\n") if data else data data = data.rstrip("\r\n") if data else data
if getPostReq and (params or cookie): if getPostReq and (params or cookie):