From bf03f4b1983dab2f98f10f5a507cab472c47fda9 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 28 Apr 2023 09:39:34 -0600 Subject: [PATCH] * Wiki: allow German umlauts and other non-ascii chars in page names Api: Fix encodeId() failed with integers --- api/src/Link/Storage.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/Link/Storage.php b/api/src/Link/Storage.php index 2909cd76db..451b5f295c 100644 --- a/api/src/Link/Storage.php +++ b/api/src/Link/Storage.php @@ -493,6 +493,10 @@ class Storage { return array_map([__CLASS__, __METHOD__], $id); } + if(is_integer($id)) + { + return '' . $id; + } return substr(json_encode($id, JSON_UNESCAPED_SLASHES), 1, -1); }