Skip to content

Commit 5a64da4

Browse files
danieldaniel
daniel
authored and
daniel
committed
Fix BOM
1 parent ec74237 commit 5a64da4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

objects/Login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static function run($user, $pass, $aVideoURL, $encodedPass = false) {
4141
$result = url_get_contents($url, $context);
4242
if (empty($result)) {
4343
error_log("Get Login fail, try again");
44-
$result = file_get_contents($url, false, $context);
44+
$result = url_get_contents($url, $context);
4545
}
4646

4747

objects/Streamer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function verify() {
8787
file_put_contents($cacheFile, $result);
8888
} else {
8989
error_log("Verification GetFrom Cache {$url}");
90-
$result = file_get_contents($cacheFile);
90+
$result = url_get_contents($cacheFile);
9191
}
9292
error_log("Verification Response ($verifyURL): {$result}");
9393
return json_decode($result);

objects/getSpiritsFromVideo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
header("Content-type: image/jpeg");
3333
if (!file_exists($imageFileName)) {
3434
// display a dummy image
35-
echo file_get_contents($global['systemRootPath'] . "view/img/creatingImages.jpg");
35+
echo url_get_contents($global['systemRootPath'] . "view/img/creatingImages.jpg");
3636
//call createsprits
3737
$command = ("php '{$global['systemRootPath']}objects/createSpiritsFromVideo.php' '$url' '$step' '$tileWidth' '$tileHeight' '$imageFileName' '$numberOfTiles' '$baseName'");
3838
error_log("getSpritsFromVideo: {$command}");
3939
exec($command . " > /dev/null 2>/dev/null &");
4040
} else {
41-
echo file_get_contents($imageFileName);
41+
echo url_get_contents($imageFileName);
4242
unlink($imageFileName);
4343
}
4444
// delete old sprits files

0 commit comments

Comments
 (0)