From nobody Sat Jan 07 17:17:48 2023 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Nq6NF1ZPYz2r5wy for ; Sat, 7 Jan 2023 17:17:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nq6NF14mBz3Kd2; Sat, 7 Jan 2023 17:17:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673111869; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xwIoF9YuIs5kTyr1pyXVBCvTadJ145tcUR72zcE+DJc=; b=l9EVHQrE/OXq/aYRD9RDCVOKZyZc9Isg4D97Zn9rsmYnmKvrOFC+ri1Yxry2d5P1/8uKpI tny3l7YTlxRSwkKbW+L5ez59qGR/WKEH1d7nkdvqIMTFIoNGHLpfF2ZijvAB9YFke9iHV4 jNJ+2NfxnhuGMDzZrUwj1uawM+9d1kbmK3aEDKILfLjhObiTCHXc+t5uXaHcLXolCAeLEl wM0N2wAHGFks2NisCYTnD/p6rta8kv6DOKheKO0XcAJxfWMENO/UUQhxUSJzD3yiKFn3IY Xwgpy+hz52W8nES6+jjBmcwTRBynjY8x5sfBW6a5H6/4p7aEMduiT1WMzgWvyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673111869; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xwIoF9YuIs5kTyr1pyXVBCvTadJ145tcUR72zcE+DJc=; b=X6qxlEcFlteKzXFCYqH/8j0BNjWe6EWlLjonQ8Hu/1T+LJhV7tEOskBOjqCO8ueKIi/ChM qHHMUIZVHnZYfizGzbH0zXzpwVjaBAkat/KcG0bzYA9VOJzY2QYvp+lBa0HxPYdLEANHqp Qo8a1cm/8m1KnRYnopTUAulYmDtlENtBmR8RoZj8sR01IkHnrNTaMPEYoMKSsRqbjChanU U9Gsv9ZS5envwM4KMCgQBQV5g7RamlPKRYNnEvnC+iPyajZDhxvqb38cyG3n7xRxTTJ8k/ wgpXgn282aYv/ttYb+1gQ18KkRDXbCuGAxrRzvJ1xB2tIp3V7LgbIYvNtgZyNA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673111869; a=rsa-sha256; cv=none; b=x4Tk3miamRS/Wd5W+Cjk3f/cxzpOd9xAaRtfVtlhjKTIwV2m5nVCta92eYjv+3QGhXGT54 fHJFoNlElclAh+Nz5065viGscclDqXW4WEXIxcjjY+Q4WpKUEPiUhS69rw4AIPZpa/DgRe uX5J2DdVnmVg3cKvBLC5FDqqst411kX9lpWdpC09U4pJtIo38jyMQq+29MoFeYNYJd8xXw 6aCP3hRvBI0PcPowktQ34Z7sHmqo9k7AvyJOUu/BOv3p9rTYGijGLJbNaaNhkHs+aVD2OU ysO/MWedzw5eIx2Yg/2B2XvbgHII+iCyRJw+hUX24GFtNN9wJks10va6evi9eQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Nq6NF07P0zHnd; Sat, 7 Jan 2023 17:17:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 307HHmLH098371; Sat, 7 Jan 2023 17:17:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 307HHmxt098370; Sat, 7 Jan 2023 17:17:48 GMT (envelope-from git) Date: Sat, 7 Jan 2023 17:17:48 GMT Message-Id: <202301071717.307HHmxt098370@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Wolfram Schneider Subject: git: 645b00391a - main - Firefox opensearch autocomplete workaround List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wosch X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 645b00391a5374ea843b8066ce9d9f701b991b6f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by wosch: URL: https://cgit.FreeBSD.org/doc/commit/?id=645b00391a5374ea843b8066ce9d9f701b991b6f commit 645b00391a5374ea843b8066ce9d9f701b991b6f Author: Wolfram Schneider AuthorDate: 2023-01-07 17:17:34 +0000 Commit: Wolfram Schneider CommitDate: 2023-01-07 17:17:34 +0000 Firefox opensearch autocomplete workaround --- website/content/en/cgi/man.cgi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/content/en/cgi/man.cgi b/website/content/en/cgi/man.cgi index 7c5e8bffa9..1d9b116e3c 100755 --- a/website/content/en/cgi/man.cgi +++ b/website/content/en/cgi/man.cgi @@ -1193,6 +1193,14 @@ sub do_man { $form{'query'} =~ s/"//g; $form{'query'} =~ s/=//g; + # Firefox opensearch autocomplete workaround + if ($form{'sourceid'} eq 'opensearch') { + # remove space between double colon + $form{'query'} =~ s/: :/::/g; + # remove space before a dot + $form{'query'} =~ s/ \./\./g; + } + $name = $query = $form{'query'}; $section = $form{'sektion'}; $apropos = $form{'apropos'};