]> git.mxchange.org Git - hub.git/commitdiff
Also remove both (opps)
authorRoland Häder <roland@mxchange.org>
Sat, 4 Aug 2012 23:10:01 +0000 (23:10 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 4 Aug 2012 23:10:01 +0000 (23:10 +0000)
application/hub/main/streams/raw_data/input/class_RawDataInputStream.php

index 6fc9e077cd0a9d9a1910298f96207da688fc2090..38deb7aa40cf6e0e30e2d931625f32a79db421c9 100644 (file)
@@ -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