How to disable copy and paste image functionality in cute editor <img src="data:image\png..."

  •  01-10-2012, 11:11 AM

    How to disable copy and paste image functionality in cute editor <img src="data:image\png..."

    Due to issues with MSFT Security advisory 2659883 - http://technet.microsoft.com/en-us/security/advisory/2659883?qstr=CR_CC=20111229OOBSMB&CR_ID=, I'm seeing a small amount of errors related to it, as it specifically relates to cuteeditor.
     
    The feature where you can copy and paste an image from somewhere into CuteEditor is undesired, and runs contrary to efficiency in the storage of our html files.  Images should be hyperlinked, and our HTML Documents should not have embedded image data.
     
    Most troubling here is that this feature, as slick as it is,
    1) circumvents our ability to audit and monitor copy-righted material.  Anyone can just go to a page  somewhere on the internet, and copy and paste an image
    2) image data embedded in the page data  dramatically increases page size when it gets persisted to our storage mechanism.
     
     Steps to reproduce:
    1) Go to somewhere on the internet
    2) copy the image (Right Click in firefox)
    3) go to the cutesoft demo page
    4) paste the image in normal view
    5) Post - you'll see an error on patched servers (The URL-encoded form data is not valid. ---> System.InvalidOperationException: Operation is not valid due to the current state of the object. at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded())
     

     

     mostly interested in determining how to disable copy + paste of images with the image data being translated as src="data:image\type", but there are also issues I'm experiencing with postbacks with pages with this kind of data bumping into the constraints of the security patch.
View Complete Thread