From 98ce55886c32e36536b3487437b43dbdd6a2f9d3 Mon Sep 17 00:00:00 2001 From: Floorb <132411956+Neetpone@users.noreply.github.com> Date: Mon, 26 Jul 2021 16:47:00 -0400 Subject: [PATCH] Gonna be honest I dont really know what I did. --- .../js/plugins/ckeditor/samples/assets/posteddata.php | 2 +- includes/DatabaseHandle.class.php | 1 - includes/captcha.php | 10 ---------- includes/functions.php | 1 - theme/bulma/user_profile.php | 3 +-- 5 files changed, 2 insertions(+), 15 deletions(-) diff --git a/admin/js/plugins/ckeditor/samples/assets/posteddata.php b/admin/js/plugins/ckeditor/samples/assets/posteddata.php index 4fc5d2a..0a6e79a 100644 --- a/admin/js/plugins/ckeditor/samples/assets/posteddata.php +++ b/admin/js/plugins/ckeditor/samples/assets/posteddata.php @@ -35,7 +35,7 @@ For licensing, see LICENSE.md or http://ckeditor.com/license $value = htmlspecialchars((string)$value); ?> - +
diff --git a/includes/DatabaseHandle.class.php b/includes/DatabaseHandle.class.php index a25d7b8..39c2acb 100644 --- a/includes/DatabaseHandle.class.php +++ b/includes/DatabaseHandle.class.php @@ -1,6 +1,5 @@ '', diff --git a/includes/functions.php b/includes/functions.php index e9d9518..ae701bc 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -329,7 +329,6 @@ function doDownload($paste_id, $p_title, $p_member, $p_conntent, $p_code) { $stats = false; if ($p_code) { // Figure out extensions. - $ext = "txt"; $ext = match ($p_code) { default => 'txt', }; diff --git a/theme/bulma/user_profile.php b/theme/bulma/user_profile.php index fea881e..623efa7 100644 --- a/theme/bulma/user_profile.php +++ b/theme/bulma/user_profile.php @@ -64,8 +64,7 @@ $protocol = paste_protocol(); } elseif (strtotime($profile_join_date) <= 1609459200) { echo ''; } - if (strpos($profile_badge, '0') !== false) { - } else { + if (!str_contains($profile_badge, '0')) { echo $profile_badge; }