Oops. output of ccl_pquery not null-terminated. Added null.
authorSebastian Hammer <quinn@indexdata.com>
Wed, 18 Apr 2007 04:07:48 +0000 (04:07 +0000)
committerSebastian Hammer <quinn@indexdata.com>
Wed, 18 Apr 2007 04:07:48 +0000 (04:07 +0000)
js/pz2.js
src/logic.c
www/masterkey/index.html

index 6fa568e..6d34ce0 100644 (file)
--- a/js/pz2.js
+++ b/js/pz2.js
@@ -1,5 +1,5 @@
 /*
-** $Id: pz2.js,v 1.8 2007-04-18 03:42:30 quinn Exp $
+** $Id: pz2.js,v 1.9 2007-04-18 04:07:48 quinn Exp $
 ** pz2.js - pazpar2's javascript client library.
 */
 
@@ -91,6 +91,7 @@ var pz2 = function(paramArray) {
     // error handling
     $(document).ajaxError( 
     function (request, settings, exception) {
+           alert("AjaxErr");
         if ( settings.responseXML && settings.responseXML.getElementsByTagName("error") )
             throw new Error( settings.responseXML.getElementsByTagName("error")[0].childNodes[0].nodeValue);
     });
@@ -282,7 +283,6 @@ pz2.prototype = {
                    var delay = __myself.showTime;
                    if (__myself.showCounter > __myself.showFastCount)
                            delay *= 2;
-                           alert(delay);
                     if (activeClients > 0)
                         __myself.showTimer = setTimeout("__myself.show()", delay);
                 }
index 5013956..5632307 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: logic.c,v 1.5 2007-04-17 21:25:26 quinn Exp $
+/* $Id: logic.c,v 1.6 2007-04-18 04:07:48 quinn Exp $
    Copyright (c) 2006-2007, Index Data.
 
 This file is part of Pazpar2.
@@ -1261,6 +1261,7 @@ static int client_parse_query(struct client *cl)
     }
     wrbuf_rewind(se->wrbuf);
     ccl_pquery(se->wrbuf, cn);
+    wrbuf_putc(se->wrbuf, '\0');
     if (cl->pquery)
         xfree(cl->pquery);
     cl->pquery = xstrdup(wrbuf_buf(se->wrbuf));
index 92f9b06..c7fcde9 100755 (executable)
@@ -4,7 +4,7 @@
     <title>MasterKey Power Search</title>
     <link rel="author" href="http://www.indexdata.dk" />
     <link href="css/styles.css" rel="stylesheet" type="text/css" media="screen, all" />
-    <script type="text/javascript" src="js/jquery.js"></script>
+    <script type="text/javascript" src="js/jquery.pack.js"></script>
     <script type="text/javascript" src="js/pz2.js"></script>
     <script type="text/javascript" src="js/pzQuery.js"></script>
     <script type="text/javascript" src="js/client.js"></script>