bugfix: prevent leading/trailing single quote if message does not contain inline functions, replaced str_replace with addcslashes
bugfix: prevent leading/trailing single quote if message does not contain inline functions, replaced str_replace with addcslashes

octris/core,octris/core