Interfaces/Zugferd: Extension With ToUpper() and Substring(1)
This commit is contained in:
parent
9f11b2b7bc
commit
38f330b94b
@ -169,8 +169,11 @@ Public Class PDFEmbeds
|
|||||||
Dim oExtension As String = oFileInfo.Extension
|
Dim oExtension As String = oFileInfo.Extension
|
||||||
|
|
||||||
If String.IsNullOrWhiteSpace(oExtension) Then
|
If String.IsNullOrWhiteSpace(oExtension) Then
|
||||||
Logger.Error("The embedded file [{0}] does not have any extension. Skipping.")
|
Logger.Error("The embedded file [{0}] does not have any extension. Skipping.", oFileName)
|
||||||
Continue For
|
Continue For
|
||||||
|
Else
|
||||||
|
' Jetzt wissen wir, das es eine Extension gibt!
|
||||||
|
oExtension = oFileInfo.Extension.ToUpper.Substring(1)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If pExtensions.Contains(oExtension) Then
|
If pExtensions.Contains(oExtension) Then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user