From 89d002baaa196b21ac4d4072e21e7451c47a2355 Mon Sep 17 00:00:00 2001 From: Dan Untenzu Date: Mon, 20 Feb 2017 16:15:17 +0100 Subject: [PATCH] [FEATURE] Follow up: Remove further form targets Follow up for commit a12b04d2670d2916008e53b4f5a2cc5f158cb998. Remove further form action targets, if these forms should be send to the same page anyway. In this case we may safely omnit the action attribute and safe some path constructions. --- admin.php | 16 ++++++++-------- index.php | 8 ++++---- lib/functions.php | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/admin.php b/admin.php index e4321db..230c512 100644 --- a/admin.php +++ b/admin.php @@ -78,7 +78,7 @@ if (php_sapi_name() == "cli") { elseif ((!isset($_SESSION['admin_auth']) || $_SESSION['admin_auth'] != true) && empty($cfg['admin_http_auth_user'])) { require(JIRAFEAU_ROOT . 'lib/template/header.php'); ?> -
+
@@ -138,7 +138,7 @@ if (php_sapi_name() == "cli") { ?>
- + - + - + - + - + - +
@@ -150,7 +150,7 @@ if (php_sapi_name() == "cli") {
@@ -162,7 +162,7 @@ if (php_sapi_name() == "cli") {
@@ -174,7 +174,7 @@ if (php_sapi_name() == "cli") {
@@ -188,7 +188,7 @@ if (php_sapi_name() == "cli") {
@@ -202,7 +202,7 @@ if (php_sapi_name() == "cli") {
@@ -217,7 +217,7 @@ if (php_sapi_name() == "cli") {
-
+
diff --git a/index.php b/index.php index 39eded5..6d1dc10 100644 --- a/index.php +++ b/index.php @@ -61,7 +61,7 @@ if (!jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) { /* Show auth page. */ if (!isset($_SESSION['upload_auth']) || $_SESSION['upload_auth'] != true) { ?> -
+
@@ -89,7 +89,7 @@ if (!jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) { } } } - + ?>

@@ -108,7 +108,7 @@ if (!jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) {

:

-
@@ -243,7 +243,7 @@ if (!jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) { - + diff --git a/lib/functions.php b/lib/functions.php index 99c11ec..85651ba 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -611,17 +611,17 @@ function jirafeau_admin_list($name, $file_hash, $link_hash) echo '
'; echo ''; echo '
' . strftime('%c', $l['upload_date']) . '' . $l['ip'] . '' . - '
' . + '' . '' . '' . '' . '
' . - '
' . + '' . '' . '' . '' . '
' . - '
' . + '' . '' . '' . '' . -- 2.34.1