diff dnd.module @ 27:9a92410be362

Fixed json decoding, which I will now proceed to throw out.
author David Eads <eads@chicagotech.org>
date Fri, 13 Mar 2009 19:34:05 -0500
parents 69db20fdbac2
children 7d6bf2dca269
line wrap: on
line diff
--- a/dnd.module	Wed Mar 11 22:52:20 2009 -0500
+++ b/dnd.module	Fri Mar 13 19:34:05 2009 -0500
@@ -137,7 +137,7 @@
   $request = drupal_http_request($settings['url']);
 
   // We must remove some Drupal escaping
-  $json = json_decode(str_replace(array('\x3c', '\x3e', '\x26'), array("<", ">", "&"), $request->data), TRUE);
+  $json = json_decode(str_replace(array('\x3c', '\x3e', '\x26', "\'"), array("<", ">", "&", "'"), $request->data), TRUE);
 
   // Generate an array of editor representations to add
   if (is_array($json['editor_representations'])) {