Ticket #1129: sanitize_tags-deprecation_notice-in-ops.diff
File sanitize_tags-deprecation_notice-in-ops.diff, 1.4 KB (added by , 13 years ago) |
---|
-
manage_user.php
97 97 98 98 if (isset($_POST['search_submit'])){ 99 99 $search_name = post_str('search_text'); 100 $search_name = BoincDb::escape_string(s trip_tags($search_name));100 $search_name = BoincDb::escape_string(sanitize_tags($search_name)); 101 101 102 102 if (!empty($search_name)){ 103 103 $result = mysql_query("SELECT * FROM user WHERE name='$search_name'"); -
clean_user_names.php
16 16 // You should have received a copy of the GNU Lesser General Public License 17 17 // along with BOINC. If not, see <http://www.gnu.org/licenses/>. 18 18 19 // DEPRECATED: this was used to clean user names from html that was allowed at this time 20 21 die("This file is DEPRECATED, see source for more information."); 22 19 23 $cli_only = true; 20 24 require_once("../inc/db.inc"); 21 25 require_once("../inc/util_ops.inc"); … … 24 28 db_init(); 25 29 26 30 function clean_user($user) { 27 if ($user->name != s trip_tags($user->name)) {28 $x = s trip_tags($user->name);31 if ($user->name != sanitize_tags($user->name)) { 32 $x = sanitize_tags($user->name); 29 33 echo "ID: $user->id 30 34 name: $user->name 31 35 stripped name: $x