判断字符是否是不安全的url字符

来源:互联网 发布:中兴优化面试 编辑:程序博客网 时间:2024/05/21 15:42
bool IsUnsafeUrlChar(_TCHAR chIn) throw(){_TUCHARch = (_TUCHAR)chIn;switch (ch){case ';':case '\\':case '?':case '@':case '&':case '=':case '+':case '

:case ',':case ' ':case '<':case '>':case '#':case '%':case '\"':case '{':case '}':case '|':case '^':case '[':case ']':case '`':return true;default:{if (ch < 32 || ch > 126)return true;return false;}}}
原创粉丝点击