Skip to content

Commit b4c11f5

Browse files
authored
fix missing space after ampersand
1 parent aec44fa commit b4c11f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zap2xml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,13 +1227,13 @@ def enc(strng):
12271227
global options
12281228
t = strng
12291229
if "-E" not in options:
1230-
t = re.sub("&[^#]","&",t)
1230+
t = re.sub("&[^#]","& ",t)
12311231
t = re.sub("\"",""",t)
12321232
t = re.sub("\'","'",t)
12331233
t = re.sub("<","&lt;",t)
12341234
t = re.sub(">","&gt;",t)
12351235
else:
1236-
if re.search("amp",options["-E"]): t = re.sub("&[^#]","&amp;",t)
1236+
if re.search("amp",options["-E"]): t = re.sub("&[^#]","&amp; ",t)
12371237
if re.search("quot",options["-E"]): t = re.sub("\"","&quot;",t)
12381238
if re.search("apos",options["-E"]): t = re.sub("\'","&apos;",t)
12391239
if re.search("lt",options["-E"]): t = re.sub("<","&lt;",t)

0 commit comments

Comments
 (0)