]> git.pld-linux.org Git - packages/cacti.git/blob - import_template_argument_space_removal.patch
*** empty log message ***
[packages/cacti.git] / import_template_argument_space_removal.patch
1 --- cacti-0.8.6i/lib/import.php 2006-10-09 00:06:00.000000000 -0400
2 +++ cacti-0.8.6i-patch/lib/import.php   2007-01-02 08:17:09.593750000 -0500
3 @@ -687,6 +687,11 @@
4         while (list($field_name, $field_array) = each($fields_data_input_edit)) {
5                 /* make sure this field exists in the xml array first */
6                 if (isset($xml_array[$field_name])) {
7 +                       /* fix issue with data input method importing and white spaces */
8 +                       if ($field_name == "input_string") {
9 +                               $xml_array[$field_name] = str_replace("><", "> <", $xml_array[$field_name]);
10 +                       }
11 +
12                         $save[$field_name] = addslashes(xml_character_decode($xml_array[$field_name]));
13                 }
14         }
This page took 0.093189 seconds and 3 git commands to generate.