1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Fix a number of potential security issues

This commit is contained in:
Chris Cummer
2018-08-03 10:14:57 -07:00
parent ec7514e592
commit 6a5b61a93b
4 changed files with 14 additions and 11 deletions

View File

@@ -13,8 +13,6 @@ import (
"github.com/senorprogrammer/wtf/wtf"
)
const APIEnvToken = "WTF_TRAVIS_API_TOKEN"
var TRAVIS_HOSTS = map[bool]string{
false: "travis-ci.org",
true: "travis-ci.com",
@@ -75,7 +73,7 @@ func travisRequest(path string) (*http.Response, error) {
func apiToken() string {
return wtf.Config.UString(
"wtf.mods.travisci.apiKey",
os.Getenv(APIEnvToken),
os.Getenv("WTF_TRAVIS_API_TOKEN"),
)
}