From b1e7b3620227dc6b0eb068d4786d7cff888c3d84 Mon Sep 17 00:00:00 2001 From: notfire Date: Tue, 10 Dec 2024 10:22:09 -0500 Subject: [PATCH] fix the accidental fork bomb i made --- admin/fedi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/fedi.php b/admin/fedi.php index b1dff9f..6c6680a 100644 --- a/admin/fedi.php +++ b/admin/fedi.php @@ -17,10 +17,10 @@ curl_setopt($ch, CURLOPT_HTTPHEADER, $contentO = $arr["text"]; $contentR = $arr["responsetext"]; +$url = "{$pageProto}://" . $_SERVER["HTTP_HOST"] . $pagePath . "/fetch.php?id={$id}"; if ($arr["iscwed"] == "t") { $contentCW = $arr["cw"]; - $url = "{$pageProto}://" . $_SERVER["HTTP_HOST"] . str_replace("/admin/fedi.php", "/fetch.php?id={$id}", $_SERVER["REQUEST_URI"]); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array('status' => "question: {$contentO}\n\nresponse: {$contentR}\n\nlink: {$url}", 'visibility' => "{$fediVisibility}", 'spoiler_text' => "anonymous question response (automated); cw: {$contentCW}"))); } else {