Skip to content

Commit 4f890c4

Browse files
Limit short-name for OpenSearch XML to 16 characters
The specification does not allow more than 16 characters.
1 parent c110a97 commit 4f890c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/misc/opensearch.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
2-
<ShortName>{{ setting('app-name') }}</ShortName>
2+
<ShortName>{{ mb_strimwidth(setting('app-name'), 0, 16) }}</ShortName>
33
<Description>Search {{ setting('app-name') }}</Description>
44
<Image width="256" height="256" type="image/png">{{ setting('app-icon') ?: url('/icon.png') }}</Image>
55
<Image width="180" height="180" type="image/png">{{ setting('app-icon-180') ?: url('/icon-180.png') }}</Image>

0 commit comments

Comments
 (0)