Skip to content

Commit

Permalink
Tweaked URL sanitization (close #333)
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Jul 5, 2022
1 parent ab43bfb commit 677e3e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CurseBreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def c_install(self, args):
optignore = True
args = args.replace('-i', '', 1)
args = re.sub(r'([a-zA-Z0-9_:])([ ]+)([a-zA-Z0-9_:])', r'\1,\3', args)
addons = [addon.strip() for addon in list(reader([args], skipinitialspace=True))[0]]
addons = [re.sub(r'[\[\]]', '', addon).strip() for addon in list(reader([args], skipinitialspace=True))[0]]
exceptions = []
if len(addons) > 0:
if self.core.clientType != 'retail':
Expand Down

0 comments on commit 677e3e4

Please sign in to comment.