Skip to content

Commit e41d6ad

Browse files
gr8manmichalsn
andauthored
Update system/Database/BaseConnection.php
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
1 parent 51e7f4f commit e41d6ad

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎system/Database/BaseConnection.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,10 @@ public function escapeIdentifier($item): string
14401440
private function isSafeToBypassEscape(string $item): bool
14411441
{
14421442
$item = trim($item);
1443+
1444+
if ($item === '') {
1445+
return false;
1446+
}
14431447

14441448
// String literals starting and ending with single quotes
14451449
if ($item[0] === "'" && preg_match('/^\'(?:[^\']|\'\')*\'$/s', $item)) {

0 commit comments

Comments
 (0)