Update index.php

This commit is contained in:
Tufayel Ahmed 2020-05-20 13:20:42 +06:00 committed by GitHub
parent b329c2ae1f
commit c6a2887667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ function getContent($url)
</div> </div>
<?php <?php
if (isset($_POST['tiktok-url']) && !empty($_POST['tiktok-url'])) { if (isset($_POST['tiktok-url']) && !empty($_POST['tiktok-url'])) {
$url = $_POST['tiktok-url']; $url = trim($_POST['tiktok-url']);
$resp = getContent($url); $resp = getContent($url);
//echo "$resp"; //echo "$resp";
$check = explode("\"contentUrl\":\"", $resp); $check = explode("\"contentUrl\":\"", $resp);