MantisBT: master-2.25 456d874d

Author Committer Branch Timestamp Parent
dregad dregad master-2.25 2023-02-28 11:06 master-2.25 6671bc5c
Affected Issues  0032076: Ampersand in $g_search_title prevents adding search engine

Fix escaping of OpenSearch Shortname property

Improper escaping prevented the user from adding a Search Engine when
$g_search_title contains an ampersand.

The " ' < > & characters in the config variable are now escaped

  • in layout_api.php, to generate proper HTML is in the page head
  • in browser_search_plugin.php, to ensure valid XML is produced for the
    OpenSearch descriptor.

Fixes 0032076

mod - browser_search_plugin.php Diff File
mod - core/layout_api.php Diff File