Updating css to match with the website, changing search route to GET from POST
This commit is contained in:
@ -94,9 +94,9 @@ func GetTimePassed(t time.Time) string {
|
||||
}
|
||||
|
||||
func CleanString(s string) string{
|
||||
var possible_bad_char_list_that_i_made_up_which_may_contain_bad_xss_chars_look_im_not_gonna_search_for_a_xss_charlist_just_to_prevent_self_xss []string = []string{"'", "\"", "/", "<", ">", "?", "=", "#", "(", ")", "{", "}", "*", "!", "`", "[", "]"}
|
||||
var badchars []string = []string{"~", "'", "\"", "/", "<", ">", "?", "=", "#", "(", ")", "{", "}", "*", "!", "`", "[", "]"}
|
||||
|
||||
for _, c := range possible_bad_char_list_that_i_made_up_which_may_contain_bad_xss_chars_look_im_not_gonna_search_for_a_xss_charlist_just_to_prevent_self_xss {
|
||||
for _, c := range badchars {
|
||||
s = strings.ReplaceAll(s, c, "")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user