]> git.koha-community.org Git - koha.git/commit
Bug 25862: Prevent TinyMCE to mangle local url links
authorDidier Gautheron <didier.gautheron@biblibre.com>
Wed, 24 Jun 2020 14:03:16 +0000 (16:03 +0200)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Thu, 30 Jul 2020 13:59:25 +0000 (01:59 +1200)
commit7d1850d8ba324ddd27b5854d88fe508dc061145a
tree8fbad0ad1b9a53ef5a0d3a7b5d4a76f625b27273
parentbe39690df9b44d400c3a0fa6633f524d2ecf62c0
Bug 25862: Prevent TinyMCE to mangle local url links

To test:
1 create a report 1 if it doesn't exist
2 open /cgi-bin/koha/tools/koha-news.pl
3 create a news
4 add a HTML link with Insert/Edit link tinyMCE dialog box to
  /cgi-bin/koha/reports/guided_reports.pl?reports=1&phase=Run%20this%20report "report 1"
5 save
6 on the main page "report 1" link returns a 404 error

Apply patch
7 Modify news' URL
8 Test it works in: tools/koha-new.pl admin/branches.pl and admin/preferences.pl

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 2fbe775070637ebdddcc9ea0b455e80dbb85a83d)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit ace1e3e53e6332cba767594f6caa0be97ce2e198)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/wysiwyg-systempreferences.inc
koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt