Bug 377392 - 'Copy Link Location' strips random characters from URLs copied to the clipboard; r=wuno,bzbarsky a=dbaron

This commit is contained in:
Rich Walsh 2011-02-03 12:11:12 -05:00
Родитель 69b48cf346
Коммит 809d45cba1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -4416,7 +4416,7 @@ nsresult PresShell::GetLinkLocation(nsIDOMNode* aNode, nsAString& aLocationStrin
NS_ENSURE_ARG_POINTER(aNode);
nsresult rv;
nsAutoString anchorText;
static char strippedChars[] = {'\t','\r','\n'};
static const char strippedChars[] = "\t\r\n";
// are we an anchor?
nsCOMPtr<nsIDOMHTMLAnchorElement> anchor(do_QueryInterface(aNode));