From 6b48c488d5ca99774991314b33d8d50817e91146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20Ra=C3=BAl=20Arag=C3=B3n?= Date: Tue, 22 Apr 2014 03:43:25 +1200 Subject: [PATCH] Fix multiple queries! :) Example: If you call: black.. work fine.. but if you call black%20light.. broken! --- ba-simple-proxy.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ba-simple-proxy.php b/ba-simple-proxy.php index b1fa6e8..804d0ee 100644 --- a/ba-simple-proxy.php +++ b/ba-simple-proxy.php @@ -157,6 +157,7 @@ $status = array( 'http_code' => 'ERROR' ); } else { + $url = str_replace ( ' ', '%20', $url ); $ch = curl_init( $url ); if ( strtolower($_SERVER['REQUEST_METHOD']) == 'post' ) {