mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-01-08 08:12:46 +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') != '')
|
@if(env('CUSTOM_META_TAGS') == 'true' and config('advanced-config.lang') != '')
|
||||||
<html lang="{{ config('advanced-config.lang') }}">
|
<html lang="{{ config('advanced-config.lang') }}">
|
||||||
@else
|
@else
|
||||||
@ -8,7 +8,6 @@
|
|||||||
{{-- Redirects to https if enabled in the advanced-config --}}
|
{{-- Redirects to https if enabled in the advanced-config --}}
|
||||||
@if(env('FORCE_ROUTE_HTTPS') == 'true')
|
@if(env('FORCE_ROUTE_HTTPS') == 'true')
|
||||||
@php
|
@php
|
||||||
header("Content-Security-Policy: upgrade-insecure-requests");
|
|
||||||
if (! isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] == 'off' ) {
|
if (! isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] == 'off' ) {
|
||||||
$redirect_url = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
$redirect_url = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
||||||
header("Location: $redirect_url");
|
header("Location: $redirect_url");
|
||||||
|
Loading…
Reference in New Issue
Block a user