diff --git a/core/trunk/core/class/class_functions.php b/core/trunk/core/class/class_functions.php index deff8a5ad3e8ffc0dfe5bd72ae998e757a7efe2f..37e9901d61cae10c91dc767870dee69026664d67 100644 --- a/core/trunk/core/class/class_functions.php +++ b/core/trunk/core/class/class_functions.php @@ -906,7 +906,7 @@ class functions * @param $string string String to format * @return Formated date */ - public function protect_string_db($string, $databasetype = '') + public function protect_string_db($string, $databasetype = '', $full='yes') { if (isset($_SESSION['config']['databasetype']) && !empty($_SESSION['config']['databasetype'])) { @@ -925,9 +925,11 @@ class functions $string = pg_escape_string($string); } - $string=str_replace(';', ' ', $string); - $string=str_replace('--', '-', $string); - + if ($full == 'yes') { + $string=str_replace(';', ' ', $string); + $string=str_replace('--', '-', $string); + } + return $string; } diff --git a/core/trunk/core/class/class_history.php b/core/trunk/core/class/class_history.php index c3f90d54ee5898ba8f6111bbba82719f436c26ab..7ccf17bbaac3c6fdf23a27da2b94b99761851a76 100644 --- a/core/trunk/core/class/class_history.php +++ b/core/trunk/core/class/class_history.php @@ -160,7 +160,8 @@ class history extends dbquery $info = $this->protect_string_db( $info, - $databasetype + $databasetype, + 'no' ); if (!$isTech) {