This commit has been accessed 620 times via Git panel.
commit 613cdf3af174bea346b01ac5582ccf195016dde6
tree 2afc0f7b85fdc915dafe69d561b75d154d4b5f83
parent a9a728949fab2ba6bac8c3c6972d0febefae4fdf
author Engels Antonio <engels@majcms.org> 1310520468 +0800
committer Engels Antonio <engels@majcms.org> 1310520468 +0800
Disable wordwrap in send.php
diff --git a/index.php b/index.php
index c87d947..56671eb 100644
--- a/index.php
+++ b/index.php
@@ -95,7 +95,9 @@ if (!$db_query) {
$db_query = mysql_query("insert into admins values('$db_user','$pw_crypt')");
}
-$id_put = trim($_POST['id']);
+$id_put = strip_tags($_POST['id']);
+$id_put = trim($id_put);
+$id_put = strtolower($id_put);
if (get_magic_quotes_gpc()) {
$id_put = stripslashes($id_put);
@@ -105,8 +107,6 @@ if (!is_int($id_put)) {
$id_put = mysql_real_escape_string($id_put);
}
-$id_put = strip_tags($id_put);
-
$lvl_put = strip_tags($_POST['lvl']);
if ($lvl_put == "subscriber") {
diff --git a/send.php b/send.php
index 7357850..3bff179 100644
--- a/send.php
+++ b/send.php
@@ -33,9 +33,9 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
$reply_quote = trim(get_part($mbox, $msgno, "TEXT/PLAIN"));
- if ($_POST['rep'] != 2) {
- $reply_quote = wordwrap($reply_quote,75,"\r\n");
- }
+ //if ($_POST['rep'] != 2) {
+ // $reply_quote = wordwrap($reply_quote,75,"\r\n");
+ //}
$reply_quote_lines = explode("\n",$reply_quote);
tree 2afc0f7b85fdc915dafe69d561b75d154d4b5f83
parent a9a728949fab2ba6bac8c3c6972d0febefae4fdf
author Engels Antonio <engels@majcms.org> 1310520468 +0800
committer Engels Antonio <engels@majcms.org> 1310520468 +0800
Disable wordwrap in send.php
diff --git a/index.php b/index.php
index c87d947..56671eb 100644
--- a/index.php
+++ b/index.php
@@ -95,7 +95,9 @@ if (!$db_query) {
$db_query = mysql_query("insert into admins values('$db_user','$pw_crypt')");
}
-$id_put = trim($_POST['id']);
+$id_put = strip_tags($_POST['id']);
+$id_put = trim($id_put);
+$id_put = strtolower($id_put);
if (get_magic_quotes_gpc()) {
$id_put = stripslashes($id_put);
@@ -105,8 +107,6 @@ if (!is_int($id_put)) {
$id_put = mysql_real_escape_string($id_put);
}
-$id_put = strip_tags($id_put);
-
$lvl_put = strip_tags($_POST['lvl']);
if ($lvl_put == "subscriber") {
diff --git a/send.php b/send.php
index 7357850..3bff179 100644
--- a/send.php
+++ b/send.php
@@ -33,9 +33,9 @@ if (isset($_POST['msg']) and !empty($_POST['msg']) and is_numeric($_POST['msg'])
$reply_quote = trim(get_part($mbox, $msgno, "TEXT/PLAIN"));
- if ($_POST['rep'] != 2) {
- $reply_quote = wordwrap($reply_quote,75,"\r\n");
- }
+ //if ($_POST['rep'] != 2) {
+ // $reply_quote = wordwrap($reply_quote,75,"\r\n");
+ //}
$reply_quote_lines = explode("\n",$reply_quote);