Changeset 3740 in subversion


Ignore:
Timestamp:
Jun 9, 2010 3:08:15 PM (3 years ago)
Author:
netbit
Message:
  • Sanitize CSS universal selector from e-mails. Without this fix any message can play with the CSS from entire mail window or mail preview frame. Test case:

<style type="text/css">*{ background: #000; }</style>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/main.inc

    r3734 r3740  
    1 <?php 
     1<?php 
    22 
    33/* 
     
    844844    array( 
    845845      '/(^\s*<!--)|(-->\s*$)/', 
    846       '/(^\s*|,\s*|\}\s*)([a-z0-9\._#][a-z0-9\.\-_]*)/im', 
     846      '/(^\s*|,\s*|\}\s*)([a-z0-9\._#\*][a-z0-9\.\-_]*)/im', 
    847847      "/$container_id\s+body/i", 
    848848    ), 
Note: See TracChangeset for help on using the changeset viewer.