Index: branches/5.2.x/core/units/custom_fields/custom_fields_event_handler.php =================================================================== diff -u -N -r14628 -r14888 --- branches/5.2.x/core/units/custom_fields/custom_fields_event_handler.php (.../custom_fields_event_handler.php) (revision 14628) +++ branches/5.2.x/core/units/custom_fields/custom_fields_event_handler.php (.../custom_fields_event_handler.php) (revision 14888) @@ -1,6 +1,6 @@ Conn, 'qstr'), $this->_getHiddenFields($event)); + $hidden_fields = $this->Conn->qstrArray($this->_getHiddenFields($event)); if ($hidden_fields) { $object->addFilter('hidden_filter', '%1$s.FieldName NOT IN (' . implode(',', $hidden_fields) . ')'); Index: branches/5.2.x/core/install/upgrades.php =================================================================== diff -u -N -r14856 -r14888 --- branches/5.2.x/core/install/upgrades.php (.../upgrades.php) (revision 14856) +++ branches/5.2.x/core/install/upgrades.php (.../upgrades.php) (revision 14888) @@ -1,6 +1,6 @@ Conn, 'qstr'), $fields); + $fields = $this->Conn->qstrArray($fields); $where_clause = 'VariableName IN (' . implode(',', $fields) . ')'; // 1. get user, that have saved their profile at least once @@ -1865,7 +1865,7 @@ $prefix_special . 'Sort1' . $view_name, $prefix_special . 'Sort1_Dir' . $view_name, $prefix_special . 'Sort2' . $view_name, $prefix_special . 'Sort2_Dir' . $view_name, ); - $old_variable_names = array_map(Array (&$this->Conn, 'qstr'), $old_variable_names); + $old_variable_names = $this->Conn->qstrArray($old_variable_names); $sql = 'SELECT VariableValue, VariableName FROM ' . TABLE_PREFIX . 'PersistantSessionData Index: branches/5.2.x/core/units/helpers/language_import_helper.php =================================================================== diff -u -N -r14699 -r14888 --- branches/5.2.x/core/units/helpers/language_import_helper.php (.../language_import_helper.php) (revision 14699) +++ branches/5.2.x/core/units/helpers/language_import_helper.php (.../language_import_helper.php) (revision 14888) @@ -1,6 +1,6 @@ Conn, 'qstr'), $phrase_modules); + $phrase_modules = $this->Conn->qstrArray($phrase_modules); // apply phrase selection limit if ($this->_exportLimits['phrases']) { - $escaped_phrases = array_map(Array (&$this->Conn, 'qstr'), $this->_exportLimits['phrases']); + $escaped_phrases = $this->Conn->qstrArray($this->_exportLimits['phrases']); $limit_where = 'Phrase IN (' . implode(',', $escaped_phrases) . ')'; } else { @@ -258,7 +258,7 @@ // apply event selection limit if ($this->_exportLimits['emailevents']) { - $escaped_email_events = array_map(Array (&$this->Conn, 'qstr'), $this->_exportLimits['emailevents']); + $escaped_email_events = $this->Conn->qstrArray($this->_exportLimits['emailevents']); $limit_where = '`Event` IN (' . implode(',', $escaped_email_events) . ')'; } else { @@ -487,7 +487,7 @@ $to_insert = array_diff($temp_records, $live_records); if ($to_insert) { - $to_insert = array_map(Array (&$this->Conn, 'qstr'), $to_insert); + $to_insert = $this->Conn->qstrArray($to_insert); $sql = 'INSERT INTO ' . $this->Application->getUnitOption($prefix, 'TableName') . ' SELECT * @@ -503,7 +503,7 @@ $to_update = array_diff($temp_records, $to_insert); if ($to_update) { - $to_update = array_map(Array (&$this->Conn, 'qstr'), $to_update); + $to_update = $this->Conn->qstrArray($to_update); $sql = 'UPDATE ' . $this->Application->getUnitOption($prefix, 'TableName') . ' live SET '; Index: branches/5.2.x/core/kernel/managers/cache_manager.php =================================================================== diff -u -N -r14879 -r14888 --- branches/5.2.x/core/kernel/managers/cache_manager.php (.../cache_manager.php) (revision 14879) +++ branches/5.2.x/core/kernel/managers/cache_manager.php (.../cache_manager.php) (revision 14888) @@ -1,6 +1,6 @@ Conn, 'qstr'), $config_vars); + $escaped_config_vars = $this->Conn->qstrArray($config_vars); $sql = 'SELECT VariableId, VariableName, VariableValue FROM ' . TABLE_PREFIX . 'ConfigurationValues Index: branches/5.2.x/core/kernel/db/db_load_balancer.php =================================================================== diff -u -N -r14748 -r14888 --- branches/5.2.x/core/kernel/db/db_load_balancer.php (.../db_load_balancer.php) (revision 14748) +++ branches/5.2.x/core/kernel/db/db_load_balancer.php (.../db_load_balancer.php) (revision 14888) @@ -1,6 +1,6 @@ openConnection($this->lastUsedIndex); + + return $conn->qstrArray($array, $function); + } + + /** * Performs insert of given data (useful with small number of queries) * or stores it to perform multiple insert later (useful with large number of queries) * Index: branches/5.2.x/core/units/helpers/search_helper.php =================================================================== diff -u -N -r14730 -r14888 --- branches/5.2.x/core/units/helpers/search_helper.php (.../search_helper.php) (revision 14730) +++ branches/5.2.x/core/units/helpers/search_helper.php (.../search_helper.php) (revision 14888) @@ -1,6 +1,6 @@ Conn, 'escape'), $field_value); + $field_value = $this->Conn->qstrArray($field_value, 'escape'); if ($multiple) { $filter_value = $table_name.'`'.$field_name.'` LIKE "%|' . implode('|%" OR ' . $table_name.'`'.$field_name.'` LIKE "%|', $field_value) . '|%"'; Index: branches/5.2.x/core/kernel/db/db_connection.php =================================================================== diff -u -N -r14845 -r14888 --- branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 14845) +++ branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 14888) @@ -1,6 +1,6 @@