MINOR Removed mbstring support checks, its an installation requirement

This commit is contained in:
Ingo Schommer 2012-02-06 11:54:48 +01:00
parent 592d42e477
commit 59d31c2fc2
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ class SS_HTTPResponse {
$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 File

@ -62,7 +62,7 @@ class URLSegmentFilter extends Object {
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