Allow remote images for markdown content
This commit is contained in:
@@ -143,7 +143,7 @@ abstract class Base
|
|||||||
private function sendHeaders($action)
|
private function sendHeaders($action)
|
||||||
{
|
{
|
||||||
// HTTP secure headers
|
// HTTP secure headers
|
||||||
$this->response->csp(array('style-src' => "'self' 'unsafe-inline'", 'img-src' => "'self' data:"));
|
$this->response->csp(array('style-src' => "'self' 'unsafe-inline'", 'img-src' => '*'));
|
||||||
$this->response->nosniff();
|
$this->response->nosniff();
|
||||||
$this->response->xss();
|
$this->response->xss();
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
namespace Controller;
|
namespace Controller;
|
||||||
|
|
||||||
use Model\Project as ProjectModel;
|
use Model\Project as ProjectModel;
|
||||||
use Model\Task as TaskModel;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Task controller
|
* Task controller
|
||||||
|
|||||||
@@ -1149,6 +1149,13 @@ a.task-board-nobody {
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.markdown img {
|
||||||
|
display: block;
|
||||||
|
max-width: 80%;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
/* listing block */
|
/* listing block */
|
||||||
.listing {
|
.listing {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|||||||
@@ -55,3 +55,10 @@
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.markdown img {
|
||||||
|
display: block;
|
||||||
|
max-width: 80%;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user