{"action":"created","issue":{"url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/11799","labels_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/11799/labels{/name}","comments_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/11799/comments","events_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/11799/events","html_url":"https://github.com/phpmyadmin/phpmyadmin/issues/11799","id":124343963,"number":11799,"title":"Backslashes in comments are being interpreted as escape characters","user":{"login":"gottye","id":16489173,"avatar_url":"https://avatars.githubusercontent.com/u/16489173?v=3","gravatar_id":"","url":"https://api.github.com/users/gottye","html_url":"https://github.com/gottye","followers_url":"https://api.github.com/users/gottye/followers","following_url":"https://api.github.com/users/gottye/following{/other_user}","gists_url":"https://api.github.com/users/gottye/gists{/gist_id}","starred_url":"https://api.github.com/users/gottye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gottye/subscriptions","organizations_url":"https://api.github.com/users/gottye/orgs","repos_url":"https://api.github.com/users/gottye/repos","events_url":"https://api.github.com/users/gottye/events{/privacy}","received_events_url":"https://api.github.com/users/gottye/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/labels/parser","name":"parser","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-30T12:56:26Z","updated_at":"2016-01-06T12:36:33Z","closed_at":null,"body":"I'm using Access To MySQL to create a dump.sql file which is then imported via phpMyAdmin. With v4.1.14 the import works fine, but with v4.5.3.1 the import aborts with an error.\r\n\r\nI've tracked this down to a comment line which includes a Windows file path at the beginning of the dump file: \r\n\r\n     #   sourcefilename=D:\\SSGTSFB\\Databases\\names.mdb\r\n\r\nOriginally, the comment lines were treated as literals and the backslashes were just that (as in single-quoted PHP strings). However, now it appears that the comment lines are being parsed to handle escape sequences (as in double-quoted PHP strings).\r\n\r\nThis messes up the import, generating a syntax error of:\r\n\r\n   1.Unexpected character. (near \"\\\" at position 0)\r\n   2.Unexpected character. (near \"\\\" at position 2)\r\n   3.Unexpected character. (near \"\\\" at position 4)\r\n   4.Unexpected beginning of statement. (near \"\\\" at position 0)\r\n   5.Unexpected beginning of statement. (near \"S\" at position 1)\r\n   6.Unexpected beginning of statement. (near \"\\\" at position 2)\r\n   7.Unexpected beginning of statement. (near \"D\" at position 3)\r\n   8.Unexpected beginning of statement. (near \"\\\" at position 4)\r\n   9.Unexpected beginning of statement. (near \"n\" at position 5)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/comments/169314829","html_url":"https://github.com/phpmyadmin/phpmyadmin/issues/11799#issuecomment-169314829","issue_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/11799","id":169314829,"user":{"login":"gottye","id":16489173,"avatar_url":"https://avatars.githubusercontent.com/u/16489173?v=3","gravatar_id":"","url":"https://api.github.com/users/gottye","html_url":"https://github.com/gottye","followers_url":"https://api.github.com/users/gottye/followers","following_url":"https://api.github.com/users/gottye/following{/other_user}","gists_url":"https://api.github.com/users/gottye/gists{/gist_id}","starred_url":"https://api.github.com/users/gottye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gottye/subscriptions","organizations_url":"https://api.github.com/users/gottye/orgs","repos_url":"https://api.github.com/users/gottye/repos","events_url":"https://api.github.com/users/gottye/events{/privacy}","received_events_url":"https://api.github.com/users/gottye/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T12:36:33Z","updated_at":"2016-01-06T12:36:33Z","body":"A double slash would certainly provide a workaround (if I had access to the software that was creating the dump.sql file) but should this be necessary in a comment line?"}}