From 88fa065263f9c386967f566bc13a3fcee4260772 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 4 Aug 2012 23:10:01 +0000 Subject: [PATCH] Also remove both (opps) --- .../main/streams/raw_data/input/class_RawDataInputStream.php | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5