mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-12 16:44:08 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
75b89b5a97
|
@ -1,4 +1,4 @@
|
||||||
FROM alpine:3.12
|
FROM alpine:3.13
|
||||||
# Apache + PHP
|
# Apache + PHP
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
apache2 \
|
apache2 \
|
||||||
|
|
|
@ -99,7 +99,7 @@ class SecurityHeaders
|
||||||
// We have to exclude debug mode here because debugbar pulls from a CDN or two
|
// We have to exclude debug mode here because debugbar pulls from a CDN or two
|
||||||
// and it will break things.
|
// 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[] = "default-src 'self'";
|
||||||
$csp_policy[] = "style-src 'self' 'unsafe-inline'";
|
$csp_policy[] = "style-src 'self' 'unsafe-inline'";
|
||||||
$csp_policy[] = "script-src 'self' 'unsafe-inline' 'unsafe-eval'";
|
$csp_policy[] = "script-src 'self' 'unsafe-inline' 'unsafe-eval'";
|
||||||
|
|
|
@ -23,7 +23,7 @@ class Location extends SnipeModel
|
||||||
protected $rules = array(
|
protected $rules = array(
|
||||||
'name' => 'required|min:2|max:255|unique_undeleted',
|
'name' => 'required|min:2|max:255|unique_undeleted',
|
||||||
'city' => 'min:2|max:255|nullable',
|
'city' => 'min:2|max:255|nullable',
|
||||||
'country' => 'min:2|max:2|nullable',
|
'country' => 'min:2|max:255|nullable',
|
||||||
'address' => 'max:80|nullable',
|
'address' => 'max:80|nullable',
|
||||||
'address2' => 'max:80|nullable',
|
'address2' => 'max:80|nullable',
|
||||||
'zip' => 'min:3|max:10|nullable',
|
'zip' => 'min:3|max:10|nullable',
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
id="system-backups"
|
id="system-backups"
|
||||||
class="table table-striped snipe-table">
|
class="table table-striped snipe-table">
|
||||||
<thead>
|
<thead>
|
||||||
<thead>
|
|
||||||
<th>File</th>
|
<th>File</th>
|
||||||
<th>Created</th>
|
<th>Created</th>
|
||||||
<th>Size</th>
|
<th>Size</th>
|
||||||
|
|
Loading…
Reference in a new issue