diff --git a/Changelog.md b/Changelog.md index 29262f5..79d50cd 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,12 +1,15 @@ # Changelog +## From 0.3.0 to 0.3.1 + +* The data dispached will be Base64 **and** URL encoded. This will fix the bug where PHP interpets a Base64 endcoded string as two strings becuase it contains a plus sign (+). ## From 0.2.* to 0.3.0 * The `console_path` header was removed. * The tight coupling to fervo FervoDeferredEventBundle was also removed -* The `ShellExecutor` will now dispatch to the `dispatch_path` (same as the FastCgiExecutor` +* The `ShellExecutor` will now dispatch to the `dispatch_path` (same as the FastCgiExecutor) * The data dispatched will be Base64 encoded. Once decoded you will get the complete message with headers. *This is a huge BC break!* * New `queue` header will be available on the message once reached the dispatcher. * The `QueueInterface::receive` must now return a `Message`. -* New command line argument `queueNames` to enable you to listen to more than one queue. \ No newline at end of file +* New command line argument `queueNames` to enable you to listen to more than one queue. diff --git a/dispatcher.php b/dispatcher.php index da77cea..e1b5456 100644 --- a/dispatcher.php +++ b/dispatcher.php @@ -11,8 +11,9 @@ } elseif (isset($_POST['DEFERRED_DATA'])) { $data = $_POST['DEFERRED_DATA']; } elseif (isset($argv)) { + // if shell if (isset($argv[1])) { - $data = $argv[1]; + $data = urldecode($argv[1]); } }