MapPath_SafeComma

MapPath version expecting comma in filename or folder.
Just because we might have that and we do not have the option of encode url

CodeFunctionName
What is this?

Public

Tested

Original Work
Function MapPath_SafeComma(File1)
    OldFile                    = ""
    File2                        = File1
    If Instr(1, File1 , ",") > 0 Then
        OldFile                = GetSon(File1)
        File2                    = Replace(File1, ",", "")
    End If
    NewFile                    = Server.MapPath(File2)
    If OldFile > "" Then
        NewFile                = GetPapa_Sep(NewFile, "\") & "\" & OldFile
    End If
    MapPath_SafeComma        = NewFile
End Function

File1

Views 78

Downloads 45

CodeID
DB ID