From da45a531343d565bde47a477b807761d17bdb496 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Tue, 20 Aug 2013 16:29:33 +0200 Subject: [PATCH] [fix] --- index.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index e06f87a..77a74b9 100644 --- a/index.php +++ b/index.php @@ -464,16 +464,16 @@ function getVideoInfo($file, $dir, $fullListFile) { $info = array( 'hash' => $file, 'title' => $postInfo['title'], - 'originalTitle' => htmlentities($jsonInfo -> stitle), + 'originalTitle' => htmlentities($jsonInfo -> stitle, ENT_QUOTES, "UTF-8"), 'url' => $postInfo['url'], 'desc' => $postInfo['desc'], - 'originalDesc' => htmlentities($jsonInfo -> description), + 'originalDesc' => htmlentities($jsonInfo -> description, ENT_QUOTES, "UTF-8"), 'uploadDateSort' => $postInfo['uploadDateSort'], - 'uploadDate' => htmlentities($jsonInfo -> upload_date), - 'format' => htmlentities($jsonInfo -> format), - 'ext' => htmlentities($jsonInfo -> ext), - 'duration' => htmlentities($time), - 'size' => htmlentities($size), + 'uploadDate' => htmlentities($jsonInfo -> upload_date, ENT_QUOTES, "UTF-8"), + 'format' => htmlentities($jsonInfo -> format, ENT_QUOTES, "UTF-8"), + 'ext' => htmlentities($jsonInfo -> ext, ENT_QUOTES, "UTF-8"), + 'duration' => htmlentities($time, ENT_QUOTES, "UTF-8"), + 'size' => htmlentities($size, ENT_QUOTES, "UTF-8"), 'via' => $postInfo['via'], 'licence' => $postInfo['licence'] );