@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix strange bug for russian language search results

Summary:
I created this review to get an answer...
It should not be taken as a real fix.

I noticed that phabricator return corrupted search results for some russian queries (without this patch).
See screenshot:
{F147443}

But I can't reproduce this bug on https://secure.phabricator.com/
This search query causes problems only for my phabricator instance.

More than that, I didn't find any php.ini-settings that can resolve this problem.
It's look like your phabricator instance use /u-modifier by default.

But how is it possible?

Test Plan: NONE

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D8859

authored by

Pavel Ivanov and committed by
epriestley
035d55f6 5e80901c

+1 -1
+1 -1
src/applications/search/view/PhabricatorSearchResultView.php
··· 89 89 $quoted_queries = $matches[1]; 90 90 $query = preg_replace($quoted_regexp, '', $query); 91 91 92 - $query = preg_split('/\s+[+|]?/', $query); 92 + $query = preg_split('/\s+[+|]?/u', $query); 93 93 $query = array_filter($query); 94 94 $query = array_merge($query, $quoted_queries); 95 95 $str = phutil_escape_html($str);