User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This change was created with the help of AI (Claude Code).
The weblinks list models (administrator and site) build the title/alias search term as
$search = '%' . str_replace(' ', '%', $db->escape(trim($search), true) . '%');and then bind it with ->bind(':title', $search). Since the value is passed as a prepared statement parameter, it must not be escaped beforehand. Escaping it is driver dependent and leads to wrong results, e.g. on PostgreSQL escape() doubles single quotes, so a search for O'Brien searches for O''Brien and finds nothing. (The closing parenthesis was also placed after the '%' suffix, which only worked by accident.)
The term is now built as '%' . str_replace(' ', '%', trim($search)) . '%', like the core components (e.g. ContactsModel) do for bound search values.
O'Brien's links.O'Brien in the backend weblinks list (and in the frontend list).The weblink is found on all databases.
PostgreSQL: no weblink is found.
None