如何解决Fortify Open Redirect问题? 在下面的代码中,由于第2行和第4行,我得到了Open Redirect fortify Issue。如何解决以下代码,请提供帮助。
Public Function COMRET(data As Variant, N As Integer)
Dim nrows As Long
If TypeOf data Is Range Then
N = data.Rows.Count
ElseIf IsArray(data) Then
N = UBound(data, 1)
Else
' ???
End If
End Function