Differential D21770 Diff 51906 src/infrastructure/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | public function escapeMultilineComment($comment) { | ||||
// For good measure, kill anything else that isn't a nice printable | // For good measure, kill anything else that isn't a nice printable | ||||
// character. | // character. | ||||
$comment = preg_replace('/[^\x20-\x7F]+/', ' ', $comment); | $comment = preg_replace('/[^\x20-\x7F]+/', ' ', $comment); | ||||
return '/* '.$comment.' */'; | return '/* '.$comment.' */'; | ||||
} | } | ||||
public function escapeStringForLikeClause($value) { | public function escapeStringForLikeClause($value) { | ||||
$value = phutil_string_cast($value); | |||||
$value = addcslashes($value, '\%_'); | $value = addcslashes($value, '\%_'); | ||||
$value = $this->escapeUTF8String($value); | $value = $this->escapeUTF8String($value); | ||||
return $value; | return $value; | ||||
} | } | ||||
protected function getConfiguration($key, $default = null) { | protected function getConfiguration($key, $default = null) { | ||||
return idx($this->configuration, $key, $default); | return idx($this->configuration, $key, $default); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 337 Lines • Show Last 20 Lines |