allow export function to use system default newline character
Weel Young
Branch: weelyoung/phpliteadmin:master
Branch: phpliteadmin/public:master
Declined
Declined pull request
need to submit a new request
Closed by: Weel Young·2016-07-01
need to submit a new request
Currently "export SQL" and "export CSV" hard-coded '\r\n' as newline character. If user is using MAMP on Mac or on Linux localhost, then the exported file will not follow UNIX style newline character - \r
by changing the hard-coded '\r\n' to PHP_EOL, the system will automatically pick the newline char to output to the exported file