diff --git a/libraries/common.lib.php b/libraries/common.lib.php index fe67a9f94..5c31d9782 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -2644,21 +2644,4 @@ function PMA_replace_binary_contents($content) { $result = str_replace("\x1a", '\Z', $result); return $result; } - -/** - * - * If the first character given is \n (CR) we will add an extra \n - * - * @uses strpos() - * @return string with the chars replaced - */ - -function PMA_duplicateFirstNewline($string){ - $first_occurence = strpos($string, "\n"); - if($first_occurence == 1){ - $string = "\n".$string; - } - return $string; -} - ?> diff --git a/tbl_change.php b/tbl_change.php index c07e3ad9d..a3cf90b54 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -429,10 +429,6 @@ foreach ($rows as $row_id => $vrow) { $vrow[$field['Field']] = PMA_replace_binary_contents($vrow[$field['Field']]); } // end if $special_chars = htmlspecialchars($vrow[$field['Field']]); - - //We need to duplicate the first \n or otherwise we will lose the first newline entered in a VARCHAR or TEXT column - $special_chars_encoded = PMA_duplicateFirstNewline($special_chars); - $data = $vrow[$field['Field']]; } // end if... else... // loic1: if a timestamp field value is not included in an update @@ -661,7 +657,7 @@ foreach ($rows as $row_id => $vrow) { id="field__3" tabindex="" - > + > $vrow) { id="field__3" tabindex="" - > + > 32000) { @@ -871,7 +867,7 @@ foreach ($rows as $row_id => $vrow) { id="field__3" tabindex="" - > + > $vrow) { id="field__3" tabindex="" - > + >