HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/public/imunifyav/plib/library/BaseController.php
<?php

namespace Imunify360;


class BaseController extends \pm_Controller_Action
{
    protected function commonAppends()
    {
        // Plesk prototype.js causes errors when webpack trying to load modules
        $this->view->headScript()->appendScript('delete Array.prototype.entries;');
        $this->view->headScript()->appendScript('
            HTMLDivElement.prototype.__originalRemove = HTMLDivElement.prototype.remove;
            HTMLDivElement.prototype.remove = function() {
                if (this?.parentNode) {
                    this.__originalRemove();
                }
            };');
    }
}