Manual backport: Fix #367022, reported by amccann, patch by gapple: Use drupal_json...
authorBrandon Bergren
Tue, 20 Apr 2010 00:30:43 +0000 (00:30 +0000)
committerBrandon Bergren
Tue, 20 Apr 2010 00:30:43 +0000 (00:30 +0000)
location.module

index 01c6a2c..bd4d7d9 100644 (file)
@@ -933,8 +933,7 @@ function _location_autocomplete($country, $string = '') {
       }
     }
   }
-  echo drupal_to_js($matches);
-  return;
+  drupal_json($matches);
 }
 
 /**