From d4c28abe87e6c0972a5b5f21052eaeab6b72e55b Mon Sep 17 00:00:00 2001 From: Exile Date: Mon, 25 Aug 2014 16:40:55 +0400 Subject: [PATCH] MS-SQL? Rly? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Удаляем старенькое. --- upload/ajax/posts.php | 4 ++-- upload/posting.php | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/upload/ajax/posts.php b/upload/ajax/posts.php index 7c6397144..ccfe534a5 100644 --- a/upload/ajax/posts.php +++ b/upload/ajax/posts.php @@ -80,9 +80,9 @@ switch($this->request['type']) $this->ajax_die(sprintf($lang['SORRY_AUTH_REPLY'], strip_tags($is_auth['auth_reply_type']))); } - // Use trim to get rid of spaces placed there by MS-SQL 2000 - $quote_username = (trim($post['post_username']) != '') ? $post['post_username'] : get_username($post['poster_id']); + $quote_username = ($post['post_username'] != '') ? $post['post_username'] : get_username($post['poster_id']); $message = "[quote=\"". $quote_username ."\"][qpost=". $post['post_id'] ."]". $post['post_text'] ."[/quote]\r"; + // hide user passkey $message = preg_replace('#(?<=\?uk=)[a-zA-Z0-9]{10}(?=&)#', 'passkey', $message); // hide sid diff --git a/upload/posting.php b/upload/posting.php index 99fd70d8b..56155747c 100644 --- a/upload/posting.php +++ b/upload/posting.php @@ -513,10 +513,9 @@ else } if ($post_info['post_attachment'] && !IS_AM) $message = $post_info['topic_title']; - - // Use trim to get rid of spaces placed there by MS-SQL 2000 - $quote_username = ( trim($post_info['post_username']) != '' ) ? $post_info['post_username'] : $post_info['username']; + $quote_username = ($post_info['post_username'] != '') ? $post_info['post_username'] : $post_info['username']; $message = '[quote="'. $quote_username .'"][qpost='. $post_info['post_id'] .']' . $message . '[/quote]'; + // hide user passkey $message = preg_replace('#(?<=\?uk=)[a-zA-Z0-9]{10}(?=&)#', 'passkey', $message); // hide sid