Permalink
Browse files

validate formats correctly

  • Loading branch information...
1 parent 0bc8d3d commit 18e7ac3c95744f983569efe78eafaade987374d7 straup committed Aug 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 www/include/lib_api_output.php
@@ -8,7 +8,7 @@
if ($_format = get_str('format')){
- if (in_array($_format, $GLOBALS['cfg']['api_valid_formats'])){
+ if (in_array($_format, $GLOBALS['cfg']['api']['formats'])){
$format = $_format;
}
}

0 comments on commit 18e7ac3

Please sign in to comment.