View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0032076||mantisbt||bugtracker||public||2023-02-28 08:34||2023-04-11 19:07|
|Target Version||2.25.7||Fixed in Version||2.25.7|
|Summary||0032076: Ampersand in $g_search_title prevents adding search engine|
While trying to add the search engine in my Firefox browser I faced the following error message:
Invalid Format :
|Steps To Reproduce|
o Right click in the URL bar
Looks like it is due to the ampersand (&) I have in my site name...
|Tags||No tags attached.|
Problem is confirmed.
As a workaround, I suggest you remove the ampersand
Yes no problem, thank you for the answer ;)
Since this is a non-critical issue with a simple and accepted a workaround, I'm targeting resolution to 2.26.0 release.
While this was initially set to be fixed in 2.26.0, since I started work on a 2.25.7 release due to a regression issue (see 0032086), might as well pull this one in as well.
MantisBT: master-2.25 456d874d
|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
|mod - browser_search_plugin.php||Diff File|
|mod - core/layout_api.php||Diff File|