summaryrefslogtreecommitdiff
path: root/app/Filter.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2017-07-14 19:33:29 +0100
committerGreg Roach <fisharebest@gmail.com>2017-07-14 19:33:29 +0100
commitbdd7f97180625571f5cbee6e6f35a5fe50f4f64f (patch)
tree1de1b270d761fde795707375bb12736adc0f0792 /app/Filter.php
parent85ccaa18d343e7ab7195c6896ab18d371b91327f (diff)
downloadwebtrees-bdd7f97180625571f5cbee6e6f35a5fe50f4f64f.tar.gz
webtrees-bdd7f97180625571f5cbee6e6f35a5fe50f4f64f.tar.bz2
webtrees-bdd7f97180625571f5cbee6e6f35a5fe50f4f64f.zip
Move database functions to database class
Diffstat (limited to 'app/Filter.php')
-rw-r--r--app/Filter.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/app/Filter.php b/app/Filter.php
index 6d2c90e3b9..e522530c13 100644
--- a/app/Filter.php
+++ b/app/Filter.php
@@ -31,24 +31,6 @@ class Filter {
const URL_REGEX = '((https?|ftp]):)(//([^\s/?#<>]*))?([^\s?#<>]*)(\?([^\s#<>]*))?(#[^\s?#<>]+)?';
/**
- * Escape a string for use in a SQL "LIKE" clause
- *
- * @param string $string
- *
- * @return string
- */
- public static function escapeLike($string) {
- return strtr(
- $string,
- [
- '\\' => '\\\\',
- '%' => '\%',
- '_' => '\_',
- ]
- );
- }
-
- /**
* Format block-level text such as notes or transcripts, etc.
*
* @param string $text