Skip to content

Commit cf84b38

Browse files
author
Marius Cramer
committed
- Fixed missing file from previous commit
1 parent d7fe4dc commit cf84b38

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

install/lib/mysql.lib.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ public function _build_query_string($sQuery = '') {
144144
if($iPos2 !== false && ($iPos === false || $iPos2 <= $iPos)) {
145145
$sTxt = $this->escape($sValue);
146146

147-
if(strpos($sTxt, '.') !== false) $sTxt = preg_replace('/^(.+)\.(.+)$/', '`$1`.`$2`', $sTxt);
148-
else $sTxt = '`' . $sTxt . '`';
147+
if(strpos($sTxt, '.') !== false) {
148+
$sTxt = preg_replace('/^(.+)\.(.+)$/', '`$1`.`$2`', $sTxt);
149+
$sTxt = str_replace('.`*`', '.*', $sTxt);
150+
} else $sTxt = '`' . $sTxt . '`';
149151

150152
$sQuery = substr_replace($sQuery, $sTxt, $iPos2, 2);
151153
$iPos2 += strlen($sTxt);

0 commit comments

Comments
 (0)