Bug 1572864 - Backed out changeset 1c5dad422769 to make way for a different solution. a=backout

This commit is contained in:
Jorg K 2019-08-20 19:27:23 +02:00
Родитель 1033dbbe21
Коммит 0765d7b06f
1 изменённых файлов: 0 добавлений и 5 удалений

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

@ -265,12 +265,7 @@ bool nsMsgCompose::IsEmbeddedObjectSafe(const char *originalScheme,
nsAutoCString path;
rv = uri->GetPathQueryRef(path);
if (NS_SUCCEEDED(rv)) {
// For mailbox: and JS Account URLs, the original path contains
// ?number=NN, so let's transfer this over before comparing.
nsCString msgNumber = MsgExtractQueryPart(path, "number=");
MsgRemoveQueryPart(path);
if (!msgNumber.IsEmpty())
path += NS_LITERAL_CSTRING("?") + msgNumber;
// If this object is a part of the original message, we can send it
// safely.
return path.Equals(originalPath,