Skip to content

Commit

Permalink
Add url encoding to application name
Browse files Browse the repository at this point in the history
  • Loading branch information
Naduni Pamudika committed Jul 21, 2023
1 parent d8347c0 commit 345238e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion import-export-cli/impl/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"errors"
"fmt"
"net/http"
"net/url"
"os"
"path"

Expand All @@ -37,7 +38,7 @@ import (
func GetAppId(accessToken, environment, appName, appOwner string) (string, error) {
// Application REST API endpoint of the environment from the config file
applicationEndpoint := utils.GetAdminApplicationListEndpointOfEnv(environment, utils.MainConfigFilePath) +
"?user=" + appOwner + "&name=" + appName
"?user=" + appOwner + "&name=" + url.QueryEscape(appName)

// Prepping headers
headers := make(map[string]string)
Expand Down

0 comments on commit 345238e

Please sign in to comment.