Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated with UAT.

  • Loading branch information...
commit 8a65b161e9c48d848fd28dfb2331ba66109c32bd 1 parent 74d539e
attdevsupport authored
View
2  MMS/Csharp/app3/Listener.aspx.cs
@@ -67,7 +67,7 @@ protected void Page_Load(object sender, EventArgs e)
Directory.CreateDirectory(Request.MapPath(ConfigurationManager.AppSettings["ImageDirectory"]));
}
- string fileNameToSave = "From_" + senderAddress + "_At_" + receivedTime + "_UTC_On_" + receivedDate + random.Next();
+ string fileNameToSave = "From_" + senderAddress.Replace("+","") + "_At_" + receivedTime + "_UTC_On_" + receivedDate + random.Next();
fileStream = new FileStream(Request.MapPath(ConfigurationManager.AppSettings["ImageDirectory"]) + fileNameToSave + "." + type, FileMode.CreateNew, FileAccess.Write);
fileStream.Write(todecode_byte, 0, todecode_byte.Length);
}
View
2  MMS/Vb/app3/Listener.aspx.vb
@@ -61,7 +61,7 @@ Partial Public Class MMSApp3_Listener
Directory.CreateDirectory(Request.MapPath(ConfigurationManager.AppSettings("ImageDirectory")))
End If
- Dim fileNameToSave As String = "From_" & senderAddress & "_At_" & receivedTime & "_UTC_On_" & receivedDate & random.[Next]()
+ Dim fileNameToSave As String = "From_" & senderAddress.Replace("+", "") & "_At_" & receivedTime & "_UTC_On_" & receivedDate & random.[Next]()
fileStream = New FileStream(Request.MapPath(ConfigurationManager.AppSettings("ImageDirectory")) & fileNameToSave & "." & type, FileMode.CreateNew, FileAccess.Write)
fileStream.Write(todecode_byte, 0, todecode_byte.Length)
Catch
Please sign in to comment.
Something went wrong with that request. Please try again.