Skip to content

Commit 516e7a5

Browse files
committed
String injection bug
Issue: #5
1 parent 1a537a9 commit 516e7a5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CInject.Injections/Injectors/LogInject.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ public void OnInvoke(CInjection injection)
8383

8484
Logger.Debug(String.Format(" [{0}]: {1}", parameters[i].Name, dictionaryBuilder.ToString().TrimEnd(new[] { ',' })));
8585
}
86+
else if (currentArgument is String)
87+
{
88+
Logger.Debug(String.Format(" [{0}]: {1}", parameters[i].Name, currentArgument.ToString()));
89+
}
8690
else if (currentArgument is IEnumerable)
8791
{
8892
IEnumerable enumerator = (IEnumerable)currentArgument;

0 commit comments

Comments
 (0)