was merged by error with italian update

This commit is contained in:
Marc Delisle
2008-10-25 14:28:40 +00:00
parent 601416c9e2
commit 838336a317
2 changed files with 4 additions and 25 deletions

View File

@@ -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;
}
?>

View File

@@ -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_<?php echo ($idindex); ?>_3"
<?php echo $unnullify_trigger; ?>
tabindex="<?php echo ($tabindex + $tabindex_for_value); ?>"
><?php echo $special_chars_encoded; ?></textarea>
><?php echo $special_chars; ?></textarea>
<?php
} elseif (strstr($field['pma_type'], 'text')) {
echo $backup_field . "\n";
@@ -673,7 +669,7 @@ foreach ($rows as $row_id => $vrow) {
id="field_<?php echo ($idindex); ?>_3"
<?php echo $unnullify_trigger; ?>
tabindex="<?php echo ($tabindex + $tabindex_for_value); ?>"
><?php echo $special_chars_encoded; ?></textarea>
><?php echo $special_chars; ?></textarea>
<?php
echo "\n";
if (strlen($special_chars) > 32000) {
@@ -871,7 +867,7 @@ foreach ($rows as $row_id => $vrow) {
id="field_<?php echo ($idindex); ?>_3"
<?php echo $unnullify_trigger; ?>
tabindex="<?php echo ($tabindex + $tabindex_for_value); ?>"
><?php echo $special_chars_encoded; ?></textarea>
><?php echo $special_chars; ?></textarea>
<?php
} else {
@@ -1008,7 +1004,7 @@ foreach ($rows as $row_id => $vrow) {
id="field_<?php echo ($idindex); ?>_3"
<?php echo $unnullify_trigger; ?>
tabindex="<?php echo ($tabindex + $tabindex_for_value); ?>"
><?php echo $special_chars_encoded; ?></textarea>
><?php echo $special_chars; ?></textarea>
<?php
} else {
?>