Skip to content

Commit

Permalink
Stripslashes and URL encode, dude.
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkatz committed Jul 11, 2014
1 parent 7c36b03 commit 084f5f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/class-ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function autocomplete() {
$country = wunderground_get_autocomplete_country_code();

$url = add_query_arg( array(
'query' => esc_attr($_REQUEST['query']),
'query' => urlencode( stripslashes_deep( $_REQUEST['query'] ) ),
'h' => 0, // No hurricanes, please.
'c' => $country,
'type' => 'city',
Expand Down

0 comments on commit 084f5f9

Please sign in to comment.