Changeset 1928 for trunk/phpgwapi/inc
- Timestamp:
- 01/08/10 16:22:07 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.vfs_sql.inc.php
r1919 r1928 2766 2766 2767 2767 $dir_clean = $this->clean_string (array ('string' => $dir)); 2768 $sql .= " FROM phpgw_vfs WHERE ".$query_type." directory LIKE '".$GLOBALS['phpgw']->db->db_addslashes($dir_clean)."%'";2768 $sql .= " FROM phpgw_vfs WHERE ".$query_type." directory = '".$GLOBALS['phpgw']->db->db_addslashes($dir_clean)."'"; 2769 2769 $sql .= $this->extra_sql (array ('query_type' => VFS_SQL_SELECT)); 2770 2770 … … 2781 2781 { 2782 2782 $record = $GLOBALS['phpgw']->db->Record; 2783 2784 /* Further checking on the directory. This makes sure /home/user/test won't match /home/user/test22 */2785 if (@!ereg ("^$dir(/|$)", $record['directory']))2786 {2787 continue;2788 }2789 2790 /* If they want only this directory, then $dir should end without a trailing / */2791 if (!$data['checksubdirs'] && ereg ("^$dir/", $record['directory']))2792 {2793 continue;2794 }2795 2796 2783 foreach($this->attributes as $attribute) 2797 2784 {
Note: See TracChangeset
for help on using the changeset viewer.