phpmyadmin/phpmyadmin — pull request #763 by slimtim (2013-11-20 21:55:27+00:00)
Title: When importing a CSV file force a trailing new line at EOF (bug #4133)

Fix for bug #4133.
https://sourceforge.net/p/phpmyadmin/bugs/4133/

When importing a CSV file this new code adds a trailing new line at end-of-file if one does not exist. Otherwise you can run into a condition where the last line of the file is skipped by the parser or an error occurs stating, "Invalid format of CSV input on line XX"