开发者

What are the default security on WPF TextBox

开发者 https://www.devze.com 2023-03-26 17:27 出处:网络
I wonder how secure are the default WPF TextBox? For example, if I enter characters such as \\n, \', \"\", ;.These c开发者_开发技巧haracters seems to be escaped nicely. I cannot find online anywhere

I wonder how secure are the default WPF TextBox?

For example, if I enter characters such as \n, ', "", ;. These c开发者_开发技巧haracters seems to be escaped nicely. I cannot find online anywhere documentation what the default WPF TextBox does to the input Text, and what could potentially attack it.


Simple: It does nothing. It doesn't escape anything.
Entering \n in a textbox enters two characters. This is different from defining var s = "\n" as this is only one character.

0

精彩评论

暂无评论...
验证码 换一张
取 消