Permalink
Browse files

trim camera make/model; comments

  • Loading branch information...
1 parent d7c027f commit bd01c4fa8854a82661344dbbae45213529e8491e straup committed Nov 19, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 www/include/lib_flickr_photos_search.php
@@ -90,12 +90,14 @@ function flickr_photos_search_index_photo(&$photo){
$exif = $rsp['rows'];
+ # TO DO: normalize (and probably sanitize)
+
if (isset($exif['Model'])){
- $doc['camera_model'] = $exif['Model'];
+ $doc['camera_model'] = trim($exif['Model']);
}
if (isset($exif['Make'])){
- $doc['camera_make'] = $exif['Make'];
+ $doc['camera_make'] = trim($exif['Make']);
}
# EXIF: what else?

0 comments on commit bd01c4f

Please sign in to comment.