MapPath version expecting comma in filename or folder.
Just because we might have that and we do not have the option of encode url
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
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 100
Downloads 56
CodeID
DB ID