Remove the single quote

Escape with a back slash didn't work
This commit is contained in:
FusionPBX 2024-02-05 17:22:42 -07:00 committed by GitHub
parent 1f5b979d0d
commit 192e651722
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 2 deletions

View File

@ -103,9 +103,14 @@
return $exists;
}
//escape single quote with a back slash and single quote
//remove single quote
function escape_quote($value) {
return str_replace("'", "\'", $value);
if (!empty($value)) {
return str_replace("'", "", $value);
}
else {
return false;
}
}
//check to see if the process exists