1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00

Fix https redirect

This commit is contained in:
daniel 2017-09-18 20:33:47 -03:00
parent 5f05533801
commit c396ba8550

View file

@ -32,6 +32,7 @@ if (!empty($_GET['p'])) {
if (!empty($obj) && empty($obj->error)) { if (!empty($obj) && empty($obj->error)) {
http_response_code(300); http_response_code(300);
header("Location: {$_POST['name']}");
} else { } else {
http_response_code(401); http_response_code(401);
error_log("Publish denied"); error_log("Publish denied");