Index: openacs-4/packages/xowiki/tcl/xowiki-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-procs.tcl,v diff -u -r1.465 -r1.466 --- openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 4 Mar 2013 13:55:39 -0000 1.465 +++ openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 11 Apr 2013 11:41:29 -0000 1.466 @@ -215,18 +215,18 @@ db_transaction { set already_recorded [db_0or1row [my qn autoname_query] " select count from xowiki_autonames - where parent_id = $parent_id and name = :name"] + where parent_id = :parent_id and name = :name"] if {$already_recorded} { incr count db_dml [my qn update_autoname_counter] \ "update xowiki_autonames set count = count + 1 \ - where parent_id = $parent_id and name = :name" + where parent_id = :parent_id and name = :name" } else { set count 1 db_dml [my qn insert_autoname_counter] \ "insert into xowiki_autonames (parent_id, name, count) \ - values ($parent_id, :name, $count)" + values (:parent_id, :name, $count)" } } return $name$count @@ -1968,11 +1968,11 @@ # only record information for authenticated users db_dml [my qn update_last_visisted] \ "update xowiki_last_visited set time = current_timestamp, count = count + 1 \ - where page_id = $item_id and user_id = $user_id" + where page_id = :item_id and user_id = :user_id" if {[db_resultrows] < 1} { db_dml [my qn insert_last_visisted] \ "insert into xowiki_last_visited (page_id, package_id, user_id, count, time) \ - values ($item_id, $package_id, $user_id, 1, current_timestamp)" + values (:item_id, :package_id, :user_id, 1, current_timestamp)" } } }