Ignore:
Timestamp:
Aug 21, 2004, 3:50:54 PM (20 years ago)
Author:
z0rglub
Message:

in get_icon function, if the date is not in the right format, returns empty
string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_html.inc.php

    r481 r492  
    3030  global $user, $conf, $lang;
    3131
     32  if (!preg_match('/\d{4}-\d{2}-\d{2}/', $date))
     33  {
     34    return '';
     35  }
     36
    3237  list( $year,$month,$day ) = explode( '-', $date );
    3338  $unixtime = mktime( 0, 0, 0, $month, $day, $year );
Note: See TracChangeset for help on using the changeset viewer.