mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Remove the single quote
Escape with a back slash didn't work
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user