[Koha-bugs] [Bug 22318] Extend Koha news feature to include other content areas

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 11 11:35:54 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22318

Kris Sinnaeve <kris.sinnaeve at etf.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |kris.sinnaeve at etf.edu
         Resolution|FIXED                       |---

--- Comment #32 from Kris Sinnaeve <kris.sinnaeve at etf.edu> ---
Moving the contents of OpacNavRight to opac_news fails due to improper (no?)
escaping:

DBD::mysql::db do failed: You have an error in your SQL syntax; check the
manual that corresponds to your MariaDB server version for the right syntax to
use near
'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'
at line 1 [for Statement "INSERT INTO opac_news (branchcode, lang, title,
content ) VALUES (NULL, 'OpacNavRight_en', '', '            <a
class="twitter-timeline"  href="https://twitter.com/ETFLibrary"
data-widget-id="702160486524186624">Tweets by @ETFLibrary</a>
            <script>!function(d,s,id){var
js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
          ')"] at
/usr/share/koha/intranet/cgi-bin/installer/data/mysql/updatedatabase.pl line
18220.

In this example, OpacNavRight contains a script to embed a Twitter timeline.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list