function _add_nonce($server_url, $timestamp, $salt)
{
$sql = $this->sql['add_nonce'];
$result = $this->connection->query($sql, array($server_url, $timestamp, $salt));
if ($this->isError($result)) {
$this->connection->rollback();
} else {
$this->connection->commit();
}
return $this->resultToBool($result);
}
/** * @access private */ function _add_nonce($server_url, $timestamp, $salt) { // PECL SQLite extensions 1.0.3 and older (1.0.3 is the // current release at the time of this writing) have a broken // sqlite_escape_string function that breaks when passed the // empty string. Prefixing all strings with one character // keeps them unique and avoids this bug. The nonce table is // write-only, so we don't have to worry about updating other // functions with this same bad hack. return parent::_add_nonce('x' . $server_url, $timestamp, $salt); }