Permalink
Browse files

fixed bug with json encoding

  • Loading branch information...
DerWaldschrat committed Mar 23, 2013
1 parent cde4b03 commit c0e6d0c370d98996a856d8c7e9edf633e9669d1a
Showing with 2 additions and 2 deletions.
  1. +1 −1 Images/index.php
  2. +1 −1 Quote/index.php
View
@@ -50,7 +50,7 @@
if ($info[2] !== IMAGETYPE_JPEG) {
continue;
}
- $name = $file["name"];
+ $name = strtolower($file["name"]);
// Others than jpeg not allowed
if (preg_match("#(.*?)\.jpe?g$#", $name) == 0) {
continue;
View
@@ -48,7 +48,7 @@
while($res = $result->fetch_object()) {
$json[] = $res;
}
- hJSON(json_encode($json));
+ hJSON($json);
} else {
fail("quotesNotFound");
}

0 comments on commit c0e6d0c

Please sign in to comment.