mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
b6b753ee4c
Without this fix, the & was then passed to urlencode(), which escaped the ; and make invalid XML. This keeps XML out of the source URL (so the & is just a raw & in the code) and relies on the template engine to escape XML as needed (the .XML on the end of the variables).
12 lines
697 B
Scheme
Executable File
12 lines
697 B
Scheme
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
|
|
|
<% if ShortName %><ShortName>$ShortName</ShortName><% end_if %>
|
|
<% if Description %><Description>$Description</Description><% end_if %>
|
|
<% if Tags %><Tags>$Tags</Tags><% end_if %>
|
|
<% if Contact %><Contact>$Content</Contact><% end_if %>
|
|
|
|
<% if SearchPageLink %><Url type="text/html" template="$SearchPageLink.XML"></Url><% end_if %>
|
|
<% if SearchPageAtom %><Url type="application/atom+xml" template="$SearchPageAtom.XML"></Url><% end_if %>
|
|
<% if SearchPageJson %><Url type="application/x-suggestions+json" template="$SearchPageJson.XML"></Url><% end_if %>
|
|
</OpenSearchDescription> |