Fixed bugs 587802, 577802 and an unreported one
authoroes <oes@users.sourceforge.net>
Thu, 1 Aug 2002 11:20:13 +0000 (11:20 +0000)
committeroes <oes@users.sourceforge.net>
Thu, 1 Aug 2002 11:20:13 +0000 (11:20 +0000)
default.filter

index 006f5d7..b094223 100644 (file)
@@ -2,7 +2,7 @@
 # 
 #  File        :  $Source: /cvsroot/ijbswa/current/default.filter,v $
 # 
-#  $Id: default.filter,v 1.11 2002/05/24 00:57:18 oes Exp $
+#  $Id: default.filter,v 1.11.2.1 2002/07/26 15:18:26 oes Exp $
 #
 #  Purpose     :  Rules to process the content of web pages
 # 
@@ -151,7 +151,7 @@ s|<meta\s+http-equiv=['"]?set-cookie.*>|<!-- ZappedCookie -->|igU
 #################################################################################
 FILTER: webbugs Squish WebBugs (1x1 invisible GIFs used for user tracking)
 
-s/<img\s+[^>]*(?:width|height)\s*=\s*['"]?1\D[^>]*(?:width|height)\s*=\s*['"]?1\D[^>]*>//siUg
+s/<img\s+[^>]*(?:width|height)\s*=\s*['"]?1(?=\D)[^>]*(?:width|height)\s*=\s*['"]?1(?=\D)[^>]*?>//siUg
 
 
 ##################################################################################
@@ -161,8 +161,8 @@ s/<img\s+[^>]*(?:width|height)\s*=\s*['"]?1\D[^>]*(?:width|height)\s*=\s*['"]?1\
 #################################################################################
 FILTER: popups Kill all popups in JS and HTML
 
-s/([\n =;{}]|window\.)open\s*\\?\(/$1concat(/ig    # JavaScript
-s/target\s*=\s*['"]?(_blank|_new)['"]?/notarget/ig # HTML
+s/([\n =;{}]|window\.)open\s*\\?\(/$1concat(/ig     # JavaScript
+s/ target\s*=\s*(['"]?)(_blank|_new)\1?/notarget/ig # HTML
 
 
 #################################################################################
@@ -189,7 +189,7 @@ FILTER: refresh-tags Kill automatic refresh tags (for dial-on-demand setups)
 # Note: Only deactivates refreshes with more than 9 seconds delay to
 #       preserve monster-stupid but common redirections via meta tags.
 #
-s/<meta\s+http-equiv\s*=\s*(['"]?)refresh\1\s+content\s*=\s*(['"]?)\d{2,}\s*;\s*url\s*=\s*([^>\2]*)\2\s*>/<link rev="x-refresh" href="$3">/iU
+s/<meta\s+http-equiv\s*=\s*(['"]?)refresh\1\s+content\s*=\s*(['"]?)\d{2,}\s*(;\s*url\s*=\s*([^>\2]*))?\2\s*>/<link rev="x-refresh" href="$4">/iU
 
 
 #################################################################################
@@ -347,6 +347,12 @@ s+^.*warez.*$+<html><head><title>No Warez</title></head><body><h3>You're not sea
 #
 #  Revisions   :
 #     $Log: default.filter,v $
+#     Revision 1.11.2.1  2002/07/26 15:18:26  oes
+#     - All filters reviewed and many shorcomings fixed
+#     - New filters: img-reorder, banners-by-link and js-events
+#     - Jobs reorderd because they are now executed in order of
+#       appearance
+#
 #     Revision 1.11  2002/05/24 00:57:18  oes
 #     Made WeBugs job ungreedy; Fixes bug 559190
 #