Merge branch 'master' into feature/datetime
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2020-06-26 00:38:41 +02:00
commit ff152e4d0d
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ import (
"code.vikunja.io/web"
"encoding/json"
"net/http"
"net/url"
"strconv"
"strings"
"time"
@ -196,7 +197,7 @@ func (p *Provider) Search(search string, page int64) (result []*background.Image
}
searchResult := &SearchResult{}
err = doGet("search/photos?query="+search+"&page="+strconv.FormatInt(page, 10)+"&per_page=25", &searchResult)
err = doGet("search/photos?query="+url.QueryEscape(search)+"&page="+strconv.FormatInt(page, 10)+"&per_page=25", &searchResult)
if err != nil {
return
}