You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-28 07:41:55 +03:00
Fix exporting multiline comments
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
@@ -523,9 +523,11 @@ class ExportSql extends ExportPlugin
|
||||
return '--' . $GLOBALS['crlf'];
|
||||
} else {
|
||||
$lines = preg_split("/\\r\\n|\\r|\\n/", $text);
|
||||
$result = array();
|
||||
foreach ($lines as $line) {
|
||||
return '-- ' . $line . $GLOBALS['crlf'];
|
||||
$result[] = '-- ' . $line . $GLOBALS['crlf'];
|
||||
}
|
||||
return implode('', $result);
|
||||
}
|
||||
} else {
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user