]> git.mxchange.org Git - friendica.git/blobdiff - src/BaseModule.php
add missing quotation
[friendica.git] / src / BaseModule.php
index 6c14d6ba77aa6b6838c90316cdd30773f2a9460d..5185771d1c51294f0f921c1e13a4cc36bf29a991 100644 (file)
@@ -4,7 +4,6 @@ namespace Friendica;
 
 use Friendica\Core\L10n;
 use Friendica\Core\Logger;
-use Friendica\Core\System;
 
 /**
  * All modules in Friendica should extend BaseModule, although not all modules
@@ -35,6 +34,8 @@ abstract class BaseModule extends BaseObject
         */
        public static function rawContent()
        {
+               // echo '';
+               // exit;
        }
 
        /**
@@ -119,7 +120,7 @@ abstract class BaseModule extends BaseObject
                $a = \get_app();
 
                $x = explode('.', $hash);
-               if (time() > (IntVal($x[0]) + $max_livetime)) {
+               if (time() > (intval($x[0]) + $max_livetime)) {
                        return false;
                }
 
@@ -150,8 +151,8 @@ abstract class BaseModule extends BaseObject
                        $a = \get_app();
                        Logger::log('checkFormSecurityToken failed: user ' . $a->user['guid'] . ' - form element ' . $typename);
                        Logger::log('checkFormSecurityToken failed: _REQUEST data: ' . print_r($_REQUEST, true), Logger::DATA);
-                       header('HTTP/1.1 403 Forbidden');
-                       killme();
+
+                       throw new \Friendica\Network\HTTPException\ForbiddenException();
                }
        }
 }