Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecurityElement.Escape - escapes the ampersand, too, after the > is escaped for example #10786

Open
TheAnalyticalBtch opened this issue Dec 23, 2024 · 3 comments
Labels
area-System.Security Issues related to security practices for .NET developers. untriaged New issue has not been triaged by the area owner

Comments

@TheAnalyticalBtch
Copy link

Type of issue

Code doesn't work

Description

When using SecurityElement.Escape, escaping the string "007 > 60 KV" returns the following:
"007 > 60 KV"
instead of
007 > 60 KV

In other words, the result when escaping the > character should be > but it seems to be escaping the result once the > has been escaped.

I have not tried it with other escape characters with ampersand.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.security.securityelement.escape?view=net-9.0&redirectedfrom=MSDN#System_Security_SecurityElement_Escape_System_String_

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Security/SecurityElement.xml

Document Version Independent Id

e3abeb03-4f7d-494d-03f0-b7a198f04cd2

Article author

@dotnet-bot

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Dec 23, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Dec 23, 2024
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

1 similar comment
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@gewarren gewarren added the area-System.Security Issues related to security practices for .NET developers. label Dec 26, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-security, @vcsjones

@eiriktsarpalis eiriktsarpalis removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Security Issues related to security practices for .NET developers. untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

3 participants