Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ed8f16e

Browse files
committed
Minor update on user's request
1 parent 12870e6 commit ed8f16e

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

lib/core/common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,9 @@ def paramToDict(place, parameters=None):
543543
if len(parts) >= 2:
544544
parameter = parts[0].replace(" ", "")
545545

546+
if conf.pDel and conf.pDel == '\n':
547+
parts[-1] = parts[-1].rstrip()
548+
546549
condition = not conf.testParameter
547550
condition |= parameter in conf.testParameter
548551
condition |= place == PLACE.COOKIE and len(intersect((PLACE.COOKIE,), conf.testParameter, True)) > 0

lib/core/option.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,9 @@ def _cleanupOptions():
13951395
else:
13961396
conf.rParam = []
13971397

1398+
if conf.pDel:
1399+
conf.pDel = conf.pDel.decode("string_escape")
1400+
13981401
if conf.skip:
13991402
conf.skip = conf.skip.replace(" ", "")
14001403
conf.skip = re.split(PARAMETER_SPLITTING_REGEX, conf.skip)

0 commit comments

Comments
 (0)