Changeset 1643 for trunk/gregarius/admin/tags.php
- Timestamp:
- 12/28/06 12:17:35 (23 months ago)
- Files:
-
- 1 modified
-
trunk/gregarius/admin/tags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/admin/tags.php
r1580 r1643 108 108 $new_label = str_replace(' ','',$new_label); 109 109 if (is_numeric($tid) && strlen($new_label) > 0) { 110 $res = rss_query("select count(*) as cnt from " . getTable("tag") ." where binary tag=' $new_label'");110 $res = rss_query("select count(*) as cnt from " . getTable("tag") ." where binary tag='".rss_real_escape_string($new_label)."'"); 111 111 list($cnt) = rss_fetch_row($res); 112 112 if ($cnt > 0) { … … 114 114 break; 115 115 } 116 rss_query("update " .getTable("tag") ." set tag=' $new_label' where id=$tid");116 rss_query("update " .getTable("tag") ." set tag='".rss_real_escape_string($new_label)."' where id=$tid"); 117 117 rss_invalidate_cache(); 118 118 }
