Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaoyi Zha <summermontreal@gmail.com>2017-03-23 23:31:23 +0300
committerChaoyi Zha <summermontreal@gmail.com>2017-03-23 23:31:23 +0300
commit5916eecba04759347d0648cd90d96bc59047eed0 (patch)
treeb96409c3cbca766186de4ea857a2ab11a6569893
parent2ee1e70eb150ac30b5a8c95036d8b7c625c86ec2 (diff)
Use backslash instead of HTML entity to escape backticks in Toastr alerts
-rw-r--r--resources/views/about.blade.php2
-rw-r--r--resources/views/layouts/base.blade.php12
-rw-r--r--resources/views/layouts/minimal.blade.php2
3 files changed, 8 insertions, 8 deletions
diff --git a/resources/views/about.blade.php b/resources/views/about.blade.php
index d8ace52..d2ac533 100644
--- a/resources/views/about.blade.php
+++ b/resources/views/about.blade.php
@@ -28,7 +28,7 @@
</div>
<a href='#' class='btn btn-success license-btn'>More Information</a>
<pre class="license" id="gpl-license">
-Copyright (C) 2013-2016 Chaoyi Zha
+Copyright (C) 2013-2017 Chaoyi Zha
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
diff --git a/resources/views/layouts/base.blade.php b/resources/views/layouts/base.blade.php
index 15fdd14..85d0ea2 100644
--- a/resources/views/layouts/base.blade.php
+++ b/resources/views/layouts/base.blade.php
@@ -1,6 +1,6 @@
<!--
Polr, a minimalist URL shortening platform.
-Copyright (C) 2013-2016 Chaoyi Zha
+Copyright (C) 2013-2017 Chaoyi Zha
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -60,22 +60,22 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<script>
@if (Session::has('info'))
- toastr["info"](`{{str_replace('`', '&#96;', session('info'))}}`, "Info")
+ toastr["info"](`{{ str_replace('`', '\`', session('info')) }}`, "Info")
@endif
@if (Session::has('error'))
- toastr["error"](`{{str_replace('`', '&#96;', session('error'))}}`, "Error")
+ toastr["error"](`{{str_replace('`', '\`', session('error')) }}`, "Error")
@endif
@if (Session::has('warning'))
- toastr["warning"](`{{str_replace('`', '&#96;', session('warning'))}}`, "Warning")
+ toastr["warning"](`{{ str_replace('`', '\`', session('warning')) }}`, "Warning")
@endif
@if (Session::has('success'))
- toastr["success"](`{{str_replace('`', '&#96;', session('success'))}}`, "Success")
+ toastr["success"](`{{ str_replace('`', '\`', session('success')) }}`, "Success")
@endif
@if (count($errors) > 0)
// Handle Lumen validation errors
@foreach ($errors->all() as $error)
- toastr["error"](`{{str_replace('\`', $error)}}`, "Error")
+ toastr["error"](`{{ str_replace('`', '\`', $error) }}`, "Error")
@endforeach
@endif
</script>
diff --git a/resources/views/layouts/minimal.blade.php b/resources/views/layouts/minimal.blade.php
index 0d6604a..55539a0 100644
--- a/resources/views/layouts/minimal.blade.php
+++ b/resources/views/layouts/minimal.blade.php
@@ -1,6 +1,6 @@
<!--
Polr, a minimalist URL shortening platform.
-Copyright (C) 2013-2016 Chaoyi Zha
+Copyright (C) 2013-2017 Chaoyi Zha
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License