Character replacement

See all posts Reply

Character replacement new!
by Albert V, 16 years ago
When I upload images using the script, it replaces hyphens with underscores. Is there an option to turn this off?Reply
Re: Character replacement new!
by colin, 16 years ago
There is no option to turn it off.
But in the code, you can replace
$this->file_dst_name_body = str_replace(array(' ', '-'), array('_','_'), $this->file_dst_name_body) ;
$this->file_dst_name_body = ereg_replace('[^A-Za-z0-9_]', '', $this->file_dst_name_body) ;
$this->file_dst_name_body = str_replace(array(' '), array('_'), $this->file_dst_name_body) ;
$this->file_dst_name_body = ereg_replace('[^A-Za-z0-9_-]', '', $this->file_dst_name_body) ;