From 687d96bedfac0bfbe92102e945d95621949a1912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= Date: Tue, 11 Jun 2024 03:15:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/ad_js.php | 2 +- src/apps/mytag_js.php | 4 ++-- src/data/admin/ver.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apps/ad_js.php b/src/apps/ad_js.php index 07a55716..280fb3fe 100755 --- a/src/apps/ad_js.php +++ b/src/apps/ad_js.php @@ -29,7 +29,7 @@ if (isset($nocache) || !file_exists($cacheFile) || time() - filemtime($cacheFile $adbody = str_replace('"', '\"', $adbody); $adbody = str_replace("\r", "\\r", $adbody); $adbody = str_replace("\n", "\\n", $adbody); - $adbody = "document.write(\"{$adbody}\");"; + $adbody = "\r\n"; $fp = fopen($cacheFile, 'w'); fwrite($fp, $adbody); fclose($fp); diff --git a/src/apps/mytag_js.php b/src/apps/mytag_js.php index fe06f56d..a4a28382 100755 --- a/src/apps/mytag_js.php +++ b/src/apps/mytag_js.php @@ -18,7 +18,7 @@ if (isset($nocache) || !file_exists($cacheFile) || time() - filemtime($cacheFile $pv = new PartView(); $row = $pv->dsql->GetOne("SELECT * FROM `#@__mytag` WHERE aid='$aid' "); if (!is_array($row)) { - $myvalues = ""; + $myvalues = ""; } else { $tagbody = ''; if ($row['timeset'] == 0) { @@ -37,7 +37,7 @@ if (isset($nocache) || !file_exists($cacheFile) || time() - filemtime($cacheFile $myvalues = str_replace("\r", "\\r", $myvalues); $myvalues = str_replace("\n", "\\n", $myvalues); $myvalues = str_replace(""; + $myvalues = "\r\n"; file_put_contents($cacheFile, $myvalues); } } diff --git a/src/data/admin/ver.txt b/src/data/admin/ver.txt index e8a240e3..b70588f9 100644 --- a/src/data/admin/ver.txt +++ b/src/data/admin/ver.txt @@ -1 +1 @@ -20240101 \ No newline at end of file +20240601 \ No newline at end of file