Skip to content

Commit 89eda11

Browse files
authored
Merge pull request #93 from iMattPro/sanitizer
Improve handling emoji in short names
2 parents 36ec633 + c6ebaa3 commit 89eda11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ jobs:
347347

348348
# START Other Tests Job (SQLite 3 and mssql)
349349
other-tests:
350-
runs-on: ubuntu-20.04 # TODO: Change back to 'ubuntu-22.04' when https://github.com/microsoft/mssql-docker/issues/899 resolved.
350+
runs-on: ubuntu-22.04
351351
strategy:
352352
matrix:
353353
include:

controller/manifest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function handle(): JsonResponse
6565

6666
$manifest = [
6767
'name' => $this->config['sitename'],
68-
'short_name' => $this->config['pwa_short_name'] ?: utf8_substr(preg_replace('/[^\x20-\x7E]/', '', $this->config['sitename']), 0, 12),
68+
'short_name' => $this->config['pwa_short_name'] ?: utf8_substr(preg_replace('/[^\x21-\x7E]/', '', html_entity_decode($this->config['sitename'], ENT_QUOTES, 'UTF-8')), 0, 12),
6969
'display' => 'standalone',
7070
'orientation' => 'portrait',
7171
'dir' => $this->language->lang('DIRECTION'),

0 commit comments

Comments
 (0)