Skip to content

Commit 2728e1d

Browse files
committed
parseSearch(): urlencode search string to avoid "400 Bad Request"
1 parent 3bc2cd8 commit 2728e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-play.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public function parseCategories() {
255255
* @return array array of package names
256256
*/
257257
public function parseSearch($query) {
258-
$link = "https://play.google.com/store/search?q=". $query ."&c=apps";
258+
$link = "https://play.google.com/store/search?q=". urlencode($query) ."&c=apps";
259259
return $this->parse($link);
260260
}
261261
}

0 commit comments

Comments
 (0)