| Index: sitescripts/subscriptions/bin/updateMalwareDomainsList.py |
| =================================================================== |
| --- a/sitescripts/subscriptions/bin/updateMalwareDomainsList.py |
| +++ b/sitescripts/subscriptions/bin/updateMalwareDomainsList.py |
| @@ -40,9 +40,15 @@ |
| zip = zipfile.ZipFile(StringIO(data), 'r') |
| info = zip.infolist()[0] |
| for line in str(zip.read(info.filename)).splitlines(): |
| - if not line: |
| + domain = line.strip() |
| + if not domain: |
| continue |
| - print >>file, '||%s^' % line.strip().decode('idna') |
| + |
| + # HACK: Ignore entry that currently breaks YouTube, see #3521 |
| + if domain == 's.ytimg.com': |
| + continue |
| + |
| + print >>file, '||%s^' % domain.decode('idna') |
| file.close(); |
| if subprocess.check_output(['hg', 'stat', '-R', tempdir]) != '': |