--- D:/Drupal/Modules/ajaxblocks/ajaxblocks.module	Ñð Ëèï 20 20:31:42 2011
+++ W:/home/pink/www/sites/all/modules/ajaxblocks/ajaxblocks.module	Ïí Âåð 12 12:05:04 2011
@@ -398,13 +398,10 @@
     drupal_add_css(drupal_get_path('module', 'ajaxblocks') . '/ajaxblocks.css');
     $vars['styles'] = drupal_get_css();
   }
-  $get_params = '';
-  foreach ($_GET as $key => $value) {
-    if (($key == 'q') || ($key == 'blocks') || ($key == 'path')) {
-      continue;
-    }
-    $get_params .= '&' . urlencode($key) . '=' . urlencode($value);
-  }
+
+  $exclude = array('q','blocks','path');
+  $get_params = drupal_query_string_encode($_GET, $exclude);
+
   if (count($block_ids) > 0) {
     drupal_add_js(array('ajaxblocks' => 'blocks=' . implode('/', $block_ids) . '&path=' . $_GET['q'] . $get_params), 'setting');
     if ($min_delay > 0) {
