projects
/
GitHub
/
Stricted
/
speedport-hybrid-php-api.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abf641b
)
remove useless preg_replace
author
Stricted
<info@stricted.de>
Sun, 28 Jun 2015 06:57:28 +0000
(08:57 +0200)
committer
Stricted
<info@stricted.de>
Sun, 28 Jun 2015 06:57:28 +0000
(08:57 +0200)
speedport.class.php
patch
|
blob
|
blame
|
history
diff --git
a/speedport.class.php
b/speedport.class.php
index 17155c0718205ea807c2e6f59d80fd035f51bd53..692b7c31647a148f0489ddf6ea6ea3cb9fdfa17e 100644
(file)
--- a/
speedport.class.php
+++ b/
speedport.class.php
@@
-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);
}