Skip to content

Use HttpUtility.HtmlEncode in ExceptionFormatter.FormatStack #2

Description

@dkuppitz

Instead of

Buffer += Ex.StackTrace.Replace(Environment.NewLine, "<br />");

you should use

Buffer += HttpUtility.HtmlEncode(Ex.StackTrace).Replace(Environment.NewLine, "<br />");

Otherwise it's impossible to see generic types when you view the details on loggr.net.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions