Skip to content

Commit

Permalink
Don't allow HTML message to override default browser cursor styling
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 19, 2015
1 parent 0fc9c67 commit 9effa67
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions imp/lib/Mime/Viewer/Html.php
Expand Up @@ -591,8 +591,21 @@ protected function _parseCss($css, $blocked)
}
}
$item->setListComponents($components);
} elseif ($blocked) {
$val->removeRule($val2);
} else {
switch ($val2->getRule()) {
case 'cursor':
/* Don't allow overriding default pointer rules,
* since this can make visual recognition of
* clickable elements difficult. */
$val->removeRule($val2);
break;

default:
if ($blocked) {
$val->removeRule($val2);
}
break;
}
}
}
} elseif ($val instanceof Sabberworm\CSS\Property\Import) {
Expand Down

0 comments on commit 9effa67

Please sign in to comment.