Changeset 2092 for branches/branch-1_7/admin
- Timestamp:
- Sep 18, 2007, 6:41:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_7/admin/tags.php
r1932 r2092 64 64 if (function_exists('mysql_real_escape_string')) 65 65 { 66 $tag_name = mysql_real_escape_string( $_POST['tag_name-'.$tag_id]);66 $tag_name = mysql_real_escape_string(stripslashes($_POST['tag_name-'.$tag_id])); 67 67 } 68 68 else 69 69 { 70 $tag_name = mysql_escape_string( $_POST['tag_name-'.$tag_id]);70 $tag_name = mysql_escape_string(stripslashes($_POST['tag_name-'.$tag_id])); 71 71 } 72 72 … … 149 149 if (isset($_POST['add']) and !empty($_POST['add_tag']) and !is_adviser()) 150 150 { 151 $tag_name = $_POST['add_tag']; 151 if (function_exists('mysql_real_escape_string')) 152 { 153 $tag_name = mysql_real_escape_string(stripslashes($_POST['add_tag'])); 154 } 155 else 156 { 157 $tag_name = mysql_escape_string(stripslashes($_POST['add_tag'])); 158 } 152 159 153 160 // does the tag already exists?
Note: See TracChangeset
for help on using the changeset viewer.