Welcome Guest, Not a member yet? Register   Sign In
Textarea
#2

[eluser]cmgmyr[/eluser]
Yeah, this is a bug that happens on some servers depending on your set up. To fix this just create a "MY_Input.php" file in your application/core with the following:
Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Input Extends CI_Input
{
    public function __construct()
    {
        if (PHP_EOL == "\r\n"){
            $this->_standardize_newlines = FALSE;
            log_message('debug', 'Windows server: standardize newlines disabled.');
        }
        
        parent::__construct();
    }
}


Messages In This Thread
Textarea - by El Forum - 04-17-2011, 07:23 AM
Textarea - by El Forum - 04-17-2011, 08:04 AM
Textarea - by El Forum - 04-17-2011, 08:34 AM
Textarea - by El Forum - 04-17-2011, 11:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB