diff --git a/api.php b/api.php index 63d7568..2de4a2f 100644 --- a/api.php +++ b/api.php @@ -88,11 +88,11 @@ else if($ft=='png') imagedestroy($res); + function isBase64($data) { - if ( base64_encode(base64_decode($data, true)) === $data){ - return true; - } else { + if ( base64_encode(base64_decode($data, true)) === $data) + return true; + else return false; - } } \ No newline at end of file