Reverted travis changes and added html escaping

This commit is contained in:
Dan Brown 2017-07-27 16:28:23 +01:00
parent c1fc06ae34
commit 21247e10d0
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
3 changed files with 3 additions and 12 deletions

View File

@ -4,15 +4,6 @@ language: php
php:
- 7.0
addons:
apt:
packages:
- ldap-utils
- slapd
before_install:
- echo "extension=ldap.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
cache:
directories:
- $HOME/.composer/cache
@ -34,4 +25,4 @@ after_failure:
- cat storage/logs/laravel.log
script:
- phpunit --stop-on-error --stop-on-failure
- phpunit

View File

@ -56,7 +56,7 @@
<h1>{{$book->name}}</h1>
<div class="book-content" v-if="!searching">
<p class="text-muted" v-pre>{!! nl2br($book->description) !!}</p>
<p class="text-muted" v-pre>{!! nl2br(e($book->description)) !!}</p>
<div class="page-list" v-pre>
<hr>

View File

@ -52,7 +52,7 @@
<div class="col-md-7">
<h1>{{ $chapter->name }}</h1>
<div class="chapter-content" v-if="!searching">
<p class="text-muted">{!! nl2br($chapter->description) !!}</p>
<p class="text-muted">{!! nl2br(e($chapter->description)) !!}</p>
@if(count($pages) > 0)
<div class="page-list">