A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/orgrim/pg_back/commit/e6e93331999575b145e96f53470bc1f6b6d87d8a below:

always remove slashes to avoid issues with filenames on windows · orgrim/pg_back@e6e9333 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+5

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+5

-0

lines changed Original file line number Diff line number Diff line change

@@ -713,6 +713,11 @@ func cleanDBName(dbname string) string {

713 713

dbname = strings.ReplaceAll(dbname, string(os.PathSeparator), "_")

714 714

}

715 715 716 +

// Always remove slashes to avoid issues with filenames on windows

717 +

if strings.ContainsRune(dbname, '/') {

718 +

dbname = strings.ReplaceAll(dbname, "/", "_")

719 +

}

720 + 716 721

return dbname

717 722

}

718 723

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4