Updating css to match with the website, changing search route to GET from POST

This commit is contained in:
ngn
2024-01-18 20:25:33 +03:00
parent c447b632d9
commit 564ccaa109
5 changed files with 37 additions and 50 deletions

View File

@ -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, "")
}