mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
In addition, the Access-Control-Allow-Origin header is set to the same URL if an Origin header is found in the request (experimental). Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -2,6 +2,10 @@ package clean
|
||||
|
||||
// ASCII removes all non-ascii characters from a string and returns it.
|
||||
func ASCII(s string) string {
|
||||
if s == "" {
|
||||
return ""
|
||||
}
|
||||
|
||||
result := make([]rune, 0, len(s))
|
||||
|
||||
for _, r := range s {
|
||||
|
||||
Reference in New Issue
Block a user