Skip to content

Commit

Permalink
remove tags with src attributes that contain 'webkit-fake-url://' on …
Browse files Browse the repository at this point in the history
…sanitize -- fixes jejacks0n#179
  • Loading branch information
jejacks0n committed Jun 12, 2012
1 parent be83331 commit 4200451
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/mercury/regions/full.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ class @Mercury.Regions.Full extends Mercury.Region
sanitize: (sanitizer) ->
# always remove nested regions
sanitizer.find("[#{Mercury.config.regions.attribute}]").remove()
sanitizer.find('[src*="webkit-fake-url://"]').remove()

if Mercury.config.pasting.sanitize
switch Mercury.config.pasting.sanitize
Expand Down

0 comments on commit 4200451

Please sign in to comment.