added ipv4 validation
This commit is contained in:
1 parent
97e41eece0
commit
12f28a6623
3 files changed
+38
-3
No files matched your search
+3
-3
@@ -86,13 +86,13 @@ func (nkbot *NekoUKrovuBot) handleChat(ch *xmpp.Chat) {
|
||||
|
||||
func (nkbot *NekoUKrovuBot) sanitizeInput(input string) bool {
|
||||
if len(input) > 50 {
|
||||
return false
|
||||
return true
|
||||
}
|
||||
|
||||
if !utf8.ValidString(input) {
|
||||
return false
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user