Add default exclude patterns
diff --git a/html/process_update_sites.php b/html/process_update_sites.php
index 73268e3..339ae5d 100644
--- a/html/process_update_sites.php
+++ b/html/process_update_sites.php
@@ -90,6 +90,10 @@
   $sql = "SELECT pattern FROM plugin_exclude_patterns WHERE project_id = \"$project_id\" AND version = \"$version\"";
   $rs_patterns = mysql_query($sql, $dbh);
   $patterns = Array();
+  # Add default exclude patterns
+  $patterns[] = "/^.*\.source\/.*$/";
+  $patterns[] = "/^.*\.test\/.*$/";
+  $patterns[] = "/^.*\.tests\/.*$/";
   while ($myrow_patterns = mysql_fetch_assoc($rs_patterns)) {
     $patterns[] = $myrow_patterns['pattern'];
   }