]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/daemon.php
Sanitize html returned by oEmbed providers to protect laconica from XSS attacks
[quix0rs-gnu-social.git] / lib / daemon.php
index 9d89c63e781eb2e25353c5501850510cb87cc612..231f5414e9ab44a7e66faf338ddf2fef31d9982d 100644 (file)
@@ -24,6 +24,7 @@ if (!defined('LACONICA')) {
 class Daemon
 {
     var $daemonize = true;
+    var $_id = 'generic';
 
     function __construct($daemonize = true)
     {
@@ -35,6 +36,16 @@ class Daemon
         return null;
     }
 
+    function get_id()
+    {
+        return $this->_id;
+    }
+
+    function set_id($id)
+    {
+        $this->_id = $id;
+    }
+
     function background()
     {
         $pid = pcntl_fork();