mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
feat(indexers): sanitize user input (#1420)
This commit is contained in:
parent
f619501d0d
commit
c600f41e5a
2 changed files with 23 additions and 0 deletions
8
pkg/sanitize/sanitize.go
Normal file
8
pkg/sanitize/sanitize.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package sanitize
|
||||
|
||||
import "strings"
|
||||
|
||||
func String(str string) string {
|
||||
str = strings.TrimSpace(str)
|
||||
return str
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue