From 40c90d07bc7a4f4cdcd13f2c0e49519523abd2bb Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Thu, 4 Apr 2024 10:04:04 +0200 Subject: [PATCH] fix useless backup on clip --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 6f75725..c518315 100644 --- a/index.php +++ b/index.php @@ -48,7 +48,7 @@ $path = $dir . '/' . $title; $lastchanged = filemtime($path); $previous = $_POST['lastchanged']; - if ( (int)$lastchanged > (int)$previous) + if (!isset($_GET['clip']) && (int)$lastchanged > (int)$previous) { $tempcontent = file_get_contents($path); if ($tempcontent != $content)