$ git clone http://thingshare.ion.nu/thingshare.git
commit fb83fb704eef3119070eb112443fe97747a18e9a
Author: Alicia <...>
Date: Sun May 26 13:28:20 2024 +0200
Fixed a bug where RPC cooldown would apply RPC requests to self.
diff --git a/rpc.php b/rpc.php
index 1313b46..1b5e340 100644
--- a/rpc.php
+++ b/rpc.php
@@ -32,6 +32,7 @@ function rpc_curlinit($domain, $rpc)
function rpc_cooldown_check($domain)
{
+ if($domain==$_SERVER['HTTP_HOST']){return true;} // Never cooldown on self
global $db;
$domain=mysqli_real_escape_string($db, $domain);
$timestamp=mysqli_real_escape_string($db, date('Y-m-d H:i:s'));