|
|
|
@ -34,6 +34,12 @@ func loreNewString(nick, newString, newType string, redisClient *redis.Client) e
|
|
|
|
|
stripContent := strings.Replace(fmt.Sprintf("%s", content), "<", "", -1) |
|
|
|
|
stripLinks := strings.Replace(stripContent, ">", "", -1) |
|
|
|
|
|
|
|
|
|
// dont allow certain chars
|
|
|
|
|
if strings.ContainsAny(command, ";:,.'\"!$%^*()/\\") { |
|
|
|
|
// reject user input, it has unwanted chars
|
|
|
|
|
return errors.New("error: entry contains unwanted characters") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
t := time.Now() |
|
|
|
|
|
|
|
|
|
// create a timestamp to use
|
|
|
|
|