public static CookedFilename ( string fileName, string extensionName, bool trusted = false ) : string | ||
fileName | string | Filename to maybe change. Can be full path or just the filename. |
extensionName | string | Extension to add if there is none already. |
trusted | bool | True if the filename is internally generated (and therefore allowed to /// have paths in it). False if the filename is from a user-land string (and therefore allowing /// a name that walks the directory tree is a security hole.) |
return | string |