mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 14:47:31 +09:00
Issue #1566 - Lowercase link filename extension
This commit is contained in:
parent
c9ca3dbaca
commit
fcb2242703
1 changed files with 8 additions and 8 deletions
|
|
@ -1168,14 +1168,14 @@ nsDataObj :: GetFileDescriptorInternetShortcutA ( FORMATETC& aFE, STGMEDIUM& aST
|
||||||
}
|
}
|
||||||
|
|
||||||
// get a valid filename in the following order: 1) from the page title,
|
// get a valid filename in the following order: 1) from the page title,
|
||||||
// 2) localized string for an untitled page, 3) just use "Untitled.URL"
|
// 2) localized string for an untitled page, 3) just use "Untitled.url"
|
||||||
if (!CreateFilenameFromTextA(title, ".URL",
|
if (!CreateFilenameFromTextA(title, ".url",
|
||||||
fileGroupDescA->fgd[0].cFileName, NS_MAX_FILEDESCRIPTOR)) {
|
fileGroupDescA->fgd[0].cFileName, NS_MAX_FILEDESCRIPTOR)) {
|
||||||
nsXPIDLString untitled;
|
nsXPIDLString untitled;
|
||||||
if (!GetLocalizedString(u"noPageTitle", untitled) ||
|
if (!GetLocalizedString(u"noPageTitle", untitled) ||
|
||||||
!CreateFilenameFromTextA(untitled, ".URL",
|
!CreateFilenameFromTextA(untitled, ".url",
|
||||||
fileGroupDescA->fgd[0].cFileName, NS_MAX_FILEDESCRIPTOR)) {
|
fileGroupDescA->fgd[0].cFileName, NS_MAX_FILEDESCRIPTOR)) {
|
||||||
strcpy(fileGroupDescA->fgd[0].cFileName, "Untitled.URL");
|
strcpy(fileGroupDescA->fgd[0].cFileName, "Untitled.url");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1209,14 +1209,14 @@ nsDataObj :: GetFileDescriptorInternetShortcutW ( FORMATETC& aFE, STGMEDIUM& aST
|
||||||
}
|
}
|
||||||
|
|
||||||
// get a valid filename in the following order: 1) from the page title,
|
// get a valid filename in the following order: 1) from the page title,
|
||||||
// 2) localized string for an untitled page, 3) just use "Untitled.URL"
|
// 2) localized string for an untitled page, 3) just use "Untitled.url"
|
||||||
if (!CreateFilenameFromTextW(title, L".URL",
|
if (!CreateFilenameFromTextW(title, L".url",
|
||||||
fileGroupDescW->fgd[0].cFileName, NS_MAX_FILEDESCRIPTOR)) {
|
fileGroupDescW->fgd[0].cFileName, NS_MAX_FILEDESCRIPTOR)) {
|
||||||
nsXPIDLString untitled;
|
nsXPIDLString untitled;
|
||||||
if (!GetLocalizedString(u"noPageTitle", untitled) ||
|
if (!GetLocalizedString(u"noPageTitle", untitled) ||
|
||||||
!CreateFilenameFromTextW(untitled, L".URL",
|
!CreateFilenameFromTextW(untitled, L".url",
|
||||||
fileGroupDescW->fgd[0].cFileName, NS_MAX_FILEDESCRIPTOR)) {
|
fileGroupDescW->fgd[0].cFileName, NS_MAX_FILEDESCRIPTOR)) {
|
||||||
wcscpy(fileGroupDescW->fgd[0].cFileName, L"Untitled.URL");
|
wcscpy(fileGroupDescW->fgd[0].cFileName, L"Untitled.url");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue