https://bugs.documentfoundation.org/show_bug.cgi?id=109537
--- Comment #2 from Aron Budea <[email protected]> ---
The plan is to update the followig piece of code (added for bug 80807):
https://opengrok.libreoffice.org/xref/core/sfx2/source/doc/guisaveas.cxx#1151
// Suggest somewhere other than the system's temp directory
if( aLocation.GetMainURL( INetURLObject::DecodeMechanism::NONE ).startsWith(
SvtPathOptions().GetTempPath() ) )
1. Use osl::FileBase::getTempDirURL(...) instead of
SvtPathOptions().GetTempPath() to get system temporary directory, and check
against that.
2. Add an additional, Windows-specific check, get the Temporary Internet Files
location, and check if path is inside that.
a. Before Vista (and kept for compatibility reasons):
Call to SHGetFolderPath can be used:
https://msdn.microsoft.com/en-us/library/windows/desktop/bb762181(v=vs.85).aspx
The value for nFolder is CSIDL_INTERNET_CACHE (from here:
https://msdn.microsoft.com/en-us/library/windows/desktop/bb762494(v=vs.85).aspx
)
b. Since Vista:
Call to SHGetKnownFolderPath can be used:
https://msdn.microsoft.com/en-us/library/windows/desktop/bb762188(v=vs.85).aspx
The value for rfid is FOLDERID_InternetCache (from here:
https://msdn.microsoft.com/en-us/library/windows/desktop/bb762494(v=vs.85).aspx
)
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs