Merge remote-tracking branch 'origin/develop'

This commit is contained in:
snipe 2021-05-07 16:42:41 -07:00
commit 75b89b5a97
4 changed files with 3 additions and 4 deletions

View file

@ -1,4 +1,4 @@
FROM alpine:3.12
FROM alpine:3.13
# Apache + PHP
RUN apk add --no-cache \
apache2 \

View file

@ -99,7 +99,7 @@ class SecurityHeaders
// We have to exclude debug mode here because debugbar pulls from a CDN or two
// and it will break things.
if ((config('app.debug')!='true') || (config('app.enable_csp')=='true')) {
if ((config('app.debug')!='true') && (config('app.enable_csp')=='true')) {
$csp_policy[] = "default-src 'self'";
$csp_policy[] = "style-src 'self' 'unsafe-inline'";
$csp_policy[] = "script-src 'self' 'unsafe-inline' 'unsafe-eval'";

View file

@ -23,7 +23,7 @@ class Location extends SnipeModel
protected $rules = array(
'name' => 'required|min:2|max:255|unique_undeleted',
'city' => 'min:2|max:255|nullable',
'country' => 'min:2|max:2|nullable',
'country' => 'min:2|max:255|nullable',
'address' => 'max:80|nullable',
'address2' => 'max:80|nullable',
'zip' => 'min:3|max:10|nullable',

View file

@ -29,7 +29,6 @@
data-sort-order="asc"
id="system-backups"
class="table table-striped snipe-table">
<thead>
<thead>
<th>File</th>
<th>Created</th>