Skip to content

Commit d00f8cc

Browse files
committed
escape url. Buf when company name contains spaces
1 parent d9f9d37 commit d00f8cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linkedin/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
func (options *Options) getCompany() linkedinListCompany {
1313
var companies linkedinListCompany
1414

15-
url := fmt.Sprintf(LINKEDIN_LIST_COMPANY, options.Company)
15+
url := fmt.Sprintf(LINKEDIN_LIST_COMPANY, url.QueryEscape(options.Company))
1616
header := make(map[string]string)
1717
header["csrf-token"] = "ajax:1337"
1818
header["x-restli-protocol-version"] = "2.0.0"

0 commit comments

Comments
 (0)