mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-01-07 07:41:17 +01:00
Update lang.blade.php
This commit is contained in:
parent
41f3173e25
commit
1863364ef7
@ -1,4 +1,4 @@
|
||||
@if(env('FORCE_HTTPS') == 'true')<?php URL::forceScheme('https'); ?>@endif
|
||||
@if(env('FORCE_HTTPS') == 'true')<?php URL::forceScheme('https'); header("Content-Security-Policy: upgrade-insecure-requests"); ?>@endif
|
||||
@if(env('CUSTOM_META_TAGS') == 'true' and config('advanced-config.lang') != '')
|
||||
<html lang="{{ config('advanced-config.lang') }}">
|
||||
@else
|
||||
@ -8,7 +8,6 @@
|
||||
{{-- Redirects to https if enabled in the advanced-config --}}
|
||||
@if(env('FORCE_ROUTE_HTTPS') == 'true')
|
||||
@php
|
||||
header("Content-Security-Policy: upgrade-insecure-requests");
|
||||
if (! isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] == 'off' ) {
|
||||
$redirect_url = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
||||
header("Location: $redirect_url");
|
||||
|
Loading…
Reference in New Issue
Block a user