Skip to content
Browse files

fixed bug with json encoding

  • Loading branch information...
1 parent cde4b03 commit c0e6d0c370d98996a856d8c7e9edf633e9669d1a @DerWaldschrat committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 Images/index.php
  2. +1 −1 Quote/index.php
View
2 Images/index.php
@@ -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
2 Quote/index.php
@@ -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.
Something went wrong with that request. Please try again.