Skip to content

passwd异常 #2

@s1g0day

Description

@s1g0day

如果passwd 输入框内存在双引号 就会报错

image

原因是Program.cs中使用字符串的方式传入数据库信息,特殊字符可能会干扰连接字符串的语法

可以用 SqlConnectionStringBuilder 类来构建连接字符串

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions