Permalink
Browse files

Case insensitive M:N relation

  • Loading branch information...
1 parent 1315537 commit 5b6b0e1b85332491e5ac0f9191d038223f23d4c0 @vrana committed Jan 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 editor/include/adminer.inc.php
@@ -84,7 +84,7 @@ function backwardKeys($table, $tableName) {
if ($name != "") {
$search = preg_quote($tableName);
$separator = "(:|\\s*-)?\\s+";
- $return[$key]["name"] = (preg_match("(^$search$separator(.+)|^(.+?)$separator$search\$)", $name, $match) ? $match[2] . $match[3] : $name);
+ $return[$key]["name"] = (preg_match("(^$search$separator(.+)|^(.+?)$separator$search\$)iu", $name, $match) ? $match[2] . $match[3] : $name);
} else {
unset($return[$key]);
}

0 comments on commit 5b6b0e1

Please sign in to comment.