Bug 389830: dragged URLs with trailing spaces should be truncated, patch by Dão Gottwald <dao@design-noir.de>, r=mano

This commit is contained in:
gavin@gavinsharp.com 2007-08-12 12:17:04 -07:00
parent a82c1d0fb6
commit d29bff8fab

View File

@ -296,7 +296,7 @@ var transferUtils = {
{
switch (flavour) {
case "text/unicode":
return aData;
return aData.replace(/^\s+|\s+$/g, "");
case "text/x-moz-url":
return aData.toString().split("\n")[0];
case "application/x-moz-file":