From: Roland Häder Date: Sat, 4 Aug 2012 23:10:01 +0000 (+0000) Subject: Also remove both (opps) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=88fa065263f9c386967f566bc13a3fcee4260772;p=hub.git Also remove both (opps) --- diff --git a/application/hub/main/streams/raw_data/input/class_RawDataInputStream.php b/application/hub/main/streams/raw_data/input/class_RawDataInputStream.php index 6fc9e077c..38deb7aa4 100644 --- a/application/hub/main/streams/raw_data/input/class_RawDataInputStream.php +++ b/application/hub/main/streams/raw_data/input/class_RawDataInputStream.php @@ -60,6 +60,9 @@ class RawDataInputStream extends BaseStream implements InputStreamable { // Do we have start and end marker again? assert((substr($data, 0, 5) == '[[S]]') && (substr($data, -5, 5) == '[[E]]')); + // Remove both + $data = substr($data, 6 - 5); + // Can it be validated? if ((strlen($data) % 4) != 0) { // Length modulo 4 must be zero, else it is an invalid Base64 message