remove useless preg_replace
authorStricted <info@stricted.de>
Sun, 28 Jun 2015 06:57:28 +0000 (08:57 +0200)
committerStricted <info@stricted.de>
Sun, 28 Jun 2015 06:57:28 +0000 (08:57 +0200)
speedport.class.php

index 17155c0718205ea807c2e6f59d80fd035f51bd53..692b7c31647a148f0489ddf6ea6ea3cb9fdfa17e 100644 (file)
@@ -295,9 +295,8 @@ class speedport {
                // fix invalid json
                $body = preg_replace("/(\r\n)|(\r)/", "\n", $body);
                $body = preg_replace('/\'/i', '"', $body);
-               $body = preg_replace("/},\n\n]/", "}\n]", $body);
                $body = preg_replace("/\[\s+\]/i", '[ {} ]', $body);
-               $body = preg_replace("/},\n\s+]/", "} ]", $body);
+               $body = preg_replace("/},\s+]/", "}\n]", $body);
                
                return array('header' => $this->parse_headers($header), 'body' => $body);
        }