aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/public
diff options
context:
space:
mode:
authorJeremy <jeremy.benoist@gmail.com>2015-02-07 18:28:30 +0100
committerJeremy <jeremy.benoist@gmail.com>2015-02-07 18:28:31 +0100
commit8125b415d8f3bd15b8b9169fb8fc528a51603edc (patch)
tree7c410593d4ffd50007965242b1e04da1eb1aa409 /src/Wallabag/CoreBundle/Resources/public
parentd01db0c71dcf183f1676b6b06206456138cb7660 (diff)
downloadwallabag-8125b415d8f3bd15b8b9169fb8fc528a51603edc.tar.gz
wallabag-8125b415d8f3bd15b8b9169fb8fc528a51603edc.tar.zst
wallabag-8125b415d8f3bd15b8b9169fb8fc528a51603edc.zip
Avoid raw javascript in template
It kills the Symfony Crawler :)
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/public')
-rw-r--r--src/Wallabag/CoreBundle/Resources/public/js/bookmarklet.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/public/js/bookmarklet.js b/src/Wallabag/CoreBundle/Resources/public/js/bookmarklet.js
new file mode 100644
index 00000000..2afdfc3c
--- /dev/null
+++ b/src/Wallabag/CoreBundle/Resources/public/js/bookmarklet.js
@@ -0,0 +1,2 @@
1
2top["bookmarklet-url@wallabag.org"]=""+"<!DOCTYPE html>"+"<html>"+"<head>"+"<title>bag it!</title>"+'<link rel="icon" href="tpl/img/favicon.ico" />'+"</head>"+"<body>"+"<script>"+"window.onload=function(){"+"window.setTimeout(function(){"+"history.back();"+"},250);"+"};"+"</scr"+"ipt>"+"</body>"+"</html>"