mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Removed mbstring support checks, its an installation requirement
This commit is contained in:
parent
592d42e477
commit
59d31c2fc2
@ -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() {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user