C# Sanitize File Name

I recently have been moving a bunch of MP3s from various locations into a repository. I had been constructing the new file names using the ID3 tags (thanks, TagLib-Sharp!), and I noticed that I was getting a System.NotSupportedException: “The given path’s format is not supported.” This was generated by either File.Copy() or Directory.CreateDirectory(). It didn’t … Read more

Catch paste input

I’m looking for a way to sanitize input that I paste into the browser, is this possible to do with jQuery? I’ve managed to come up with this so far: $(this).live(pasteEventName, function(e) { // this is where i would like to sanitize my input return false; } Unfortunately my development has come to a screeching … Read more