# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: contributions/modules/publish/publish.module
--- contributions/modules/publish/publish.module Base (1.28.2.10)
+++ contributions/modules/publish/publish.module Locally Modified (Based On 1.28.2.10)
@@ -420,7 +420,7 @@
     $subscription->sub_status = 1;
     
     $key = md5(uniqid(mt_rand(), TRUE));
-    while (db_result(db_query('SELECT skey FROM {publish_subscribers} WHERE skey = "%s"', $key))) {
+    while (db_result(db_query("SELECT skey FROM {publish_subscribers} WHERE skey = '%s'", $key))) {
       $key = md5(uniqid(mt_rand(), TRUE));
     }
     
@@ -732,13 +732,13 @@
     return $ret;
   }
   
-  if (db_result(db_query('SELECT COUNT(*) FROM {publish_timestamp_nonce} WHERE domain = "%s" AND nonce = "%s"', $domain, $nonce))) {
+  if (db_result(db_query("SELECT COUNT(*) FROM {publish_timestamp_nonce} WHERE domain = '%s' AND nonce = '%s'", $domain, $nonce))) {
     $ret['status'] = 0;
     $ret['error'] = t('Token has been used previously for a request. Re-try with another nonce key.');
     return $ret;
   }
   else {
-    db_query('INSERT INTO {publish_timestamp_nonce} (domain, timestamp, nonce) VALUES ("%s", %d, "%s")', $domain, $timestamp, $nonce);
\ No newline at end of file
+    db_query("INSERT INTO {publish_timestamp_nonce} (domain, timestamp, nonce) VALUES ('%s', %d, '%s')", $domain, $timestamp, $nonce);
\ No newline at end of file
   }
   
   $hash_parameters = array($timestamp, $domain, $nonce, $method);
