Révision c8740e19
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/sites/all/modules/link/views/link_views_handler_filter_protocol.inc | ||
---|---|---|
90 | 90 |
// PostGreSQL code has NOT been tested. Please report any problems to the link issue queue. |
91 | 91 |
// pgSQL requires all slashes to be double escaped in regular expressions. |
92 | 92 |
// See http://www.postgresql.org/docs/8.1/static/functions-matching.html#FUNCTIONS-POSIX-REGEXP |
93 |
$condition .= ' OR ' . $field .' ~* \''.'^(([a-z0-9]([a-z0-9\\-_]*\\.)+)(' . $LINK_DOMAINS . '|[a-z][a-z]))' . '\'';
|
|
93 |
$condition .= ' OR ' . $field . ' ~* \'' . '^(([a-z0-9]([a-z0-9\\-_]*\\.)+)(' . $LINK_DOMAINS . '|[a-z][a-z]))' . '\'';
|
|
94 | 94 |
} |
95 | 95 |
else { |
96 | 96 |
// mySQL requires backslashes to be double (triple?) escaped within character classes. |
97 | 97 |
// See http://dev.mysql.com/doc/refman/5.0/en/string-comparison-functions.html#operator_regexp |
98 |
$condition .= ' OR ' . $field . ' REGEXP \''.'^(([a-z0-9]([a-z0-9\\\-_]*\.)+)(' . $LINK_DOMAINS . '|[a-z][a-z]))' . '\'';
|
|
98 |
$condition .= ' OR ' . $field . ' REGEXP \'' . '^(([a-z0-9]([a-z0-9\\\-_]*\.)+)(' . $LINK_DOMAINS . '|[a-z][a-z]))' . '\'';
|
|
99 | 99 |
} |
100 | 100 |
} |
101 | 101 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules