Created
February 13, 2025 10:35
-
-
Save R0mb0/2138cc1bdfdc9ec186838e3afa6ea691 to your computer and use it in GitHub Desktop.
'Function to check if a character is a special character in Classic ASP.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
Function is_special_character(character) | |
Select Case character | |
Case "." | |
is_special_character = true | |
Exit Function | |
Case "," | |
is_special_character = true | |
Exit Function | |
Case ":" | |
is_special_character = true | |
Exit Function | |
Case ";" | |
is_special_character = true | |
Exit Function | |
Case "`" | |
is_special_character = true | |
Exit Function | |
Case "/" | |
is_special_character = true | |
Exit Function | |
Case "\" | |
is_special_character = true | |
Exit Function | |
Case "|" | |
is_special_character = true | |
Exit Function | |
Case "_" | |
is_special_character = true | |
Exit Function | |
Case "-" | |
is_special_character = true | |
Exit Function | |
Case "~" | |
is_special_character = true | |
Exit Function | |
Case "!" | |
is_special_character = true | |
Exit Function | |
Case "@" | |
is_special_character = true | |
Exit Function | |
Case "#" | |
is_special_character = true | |
Exit Function | |
Case "$" | |
is_special_character = true | |
Exit Function | |
Case "%" | |
is_special_character = true | |
Exit Function | |
Case "^" | |
is_special_character = true | |
Exit Function | |
Case "&" | |
is_special_character = true | |
Exit Function | |
Case "*" | |
is_special_character = true | |
Exit Function | |
Case "(" | |
is_special_character = true | |
Exit Function | |
Case ")" | |
is_special_character = true | |
Exit Function | |
Case "+" | |
is_special_character = true | |
Exit Function | |
Case "=" | |
is_special_character = true | |
Exit Function | |
Case "{" | |
is_special_character = true | |
Exit Function | |
Case "[" | |
is_special_character = true | |
Exit Function | |
Case "}" | |
is_special_character = true | |
Exit Function | |
Case "]" | |
is_special_character = true | |
Exit Function | |
Case "'" | |
is_special_character = true | |
Exit Function | |
Case "<" | |
is_special_character = true | |
Exit Function | |
Case ">" | |
is_special_character = true | |
Exit Function | |
Case else | |
is_special_character = false | |
Exit Function | |
End Select | |
End Function | |
%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment