Browse files

MINOR Removed mbstring support checks, its an installation requirement

  • Loading branch information...
1 parent 592d42e commit 59d31c2fc22ca04fd4a191b87ce4af66ad26b978 @chillu chillu committed Feb 6, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 control/HTTPResponse.php
  2. +1 −1 model/URLSegmentFilter.php
View
2 control/HTTPResponse.php
@@ -152,7 +152,7 @@ function setBody($body) {
$this->body = $body;
// Set content-length in bytes. Use mbstring to avoid problems with mb_internal_encoding() and mbstring.func_overload
- $this->headers['Content-Length'] = (function_exists('mb_strlen') ? mb_strlen($this->body,'8bit') : strlen($this->body));
+ $this->headers['Content-Length'] = mb_strlen($this->body,'8bit');
}
function getBody() {
View
2 model/URLSegmentFilter.php
@@ -62,7 +62,7 @@ function filter($name) {
if($transliterator) $name = $transliterator->toASCII($name);
}
- $name = (function_exists('mb_strtolower')) ? mb_strtolower($name) : strtolower($name);
+ $name = mb_strtolower($name);
$replacements = $this->getReplacements();
if($this->getAllowMultibyte()) {
// unset automated removal of non-ASCII characters, and don't try to transliterate

0 comments on commit 59d31c2

Please sign in to comment.