Changeset 529
- Timestamp:
- 04/22/08 13:25:21 (7 months ago)
- Files:
-
- 1 modified
-
trunk/plog-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-functions.php
r528 r529 989 989 if (!$picture) { 990 990 $filepath = join("/",$names); 991 $like_match = array("_", "%"); 992 $like_replace = array("\_", "\%"); 993 $esc_filepath = str_replace($like_match, $like_replace, $filepath); 991 994 $sql = "SELECT * 992 995 FROM `".TABLE_PREFIX."pictures` 993 WHERE `path` RLIKE '^" . mysql_real_escape_string($filepath)."\..{3}$'996 WHERE `path` LIKE '" . mysql_real_escape_string($esc_filepath)."____' 994 997 AND `parent_album`=".intval($album["id"]); 995 998 $result = run_query($sql);
