Permalink
Browse files

urlencode state before passing to yql

  • Loading branch information...
1 parent c521ee3 commit 6054b63611dab0d3e31a3a5fba365ea1a15280c5 @bluesmoon committed Feb 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 404.php
View
@@ -37,7 +37,7 @@ function main()
}
}
- $missing_kids_url = str_replace('@state', $state, $yql_url);
+ $missing_kids_url = str_replace('@state', urlencode($state), $yql_url);
$json = http_get($missing_kids_url);
$o = json_decode($json, 1);
$children = $o['query']['results']['locations']['location'];

0 comments on commit 6054b63

Please sign in to comment.