apache / apache/ponymail-foal

Various issues with special characters in searches

Open
#109 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
45
Forks
23
PR merge metrics
No merged PRs in 30d

Description

The following characters all cause errors:

(, ), ", '

Note that classic PonyMail can handle these.
It sanitises the strings using the following code:
escape_html( word:gsub("[()\"]+", "") )
i.e. () and " are eliminated, and the remainder is escaped.
This is done after the strings have been parsed, as the " chars are needed to delimit phrases

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the search parsing and sanitization entry point, then reproduce searches containing parentheses, double quotes, and single quotes. Done means these characters no longer cause errors while preserving phrase parsing and matching the classic PonyMail behavior described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.