about summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove URI::Encode dependency, fix $url encodingAndinus2020-06-301-3/+2
| | | | | | Looks like query_keywords encodes the url itself so $url was being double-encoded. Also, next time use URI::Escape instead - looks better.
* Fix logical error in $url generationAndinus2020-06-301-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | This issue started with f3d1bc5f9d86300c42d6a57a9f60bd508bdf9bb4: Use URI to encode the url for random_search I'll use this for everything eventually. Before this search terms like "rocky mountains" would break, also segments, query_keywords makes it easier. Now the problem was that query_keywords forms urls like `?nature+water' which totally makes sense & this is why it's logical error. I want to form it in `?nature,water' format so first we use `join' to form `nature,water' & then use URI::Encode to encode it correctly & then use query_keywords to form $url. We have to use URI::Encode because otherwise we would end up with same problem that I tried fixing in f3d1bc5f9d86300c42d6a57a9f60bd508bdf9bb4. "rocky mountains" would've been seperated by space. Now it's all good, every space will be encoded & keywords will be seperated by `,' which is what Unsplash Source wants.
* use URI to build $urlAndinus2020-06-301-9/+22
|
* Use URI to encode the url for random_searchAndinus2020-06-171-5/+11
| | | | | | I'll use this for everything eventually. Before this search terms like "rocky mountains" would break, also segments, query_keywords makes it easier.
* Add UnsplashSource.pmAndinus2020-06-171-0/+81