Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
hash: Use encoding for slugs in dm narrow hashes.
Pratik Chanda152ad3bf3d93
diff --git a/web/src/people.ts b/web/src/people.tsindex 9f7cf3d595b..86fba6a91c5 100644--- a/web/src/people.ts+++ b/web/src/people.ts@@ -2,6 +2,7 @@ import md5 from "blueimp-md5";import assert from "minimalistic-assert";import * as z from "zod/mini";+import * as internal_url from "../shared/src/internal_url.ts";import * as typeahead from "../shared/src/typeahead.ts";import * as blueslip from "./blueslip.ts";@@ -650,7 +651,7 @@ export function pm_perma_link(message: Message): string | undefined {}export function get_slug_from_full_name(full_name: string): string {- return full_name.replaceAll(/[ "%/<>`\p{C}]+/gu, "-");+ return internal_url.encodeHashComponent(full_name.replaceAll(/[ "%/<>`\p{C}]+/gu, "-"));}export function pm_with_url(message: Message | MessageWithBooleans): string | undefined {