<?php

namespace Modules\Common\Http\Middleware;

use Closure;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\View;
use Illuminate\Support\Str;

class CommonMiddleware
{

    
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        $response = $next($request);

        // SECURITY FIX: Removed external license check that was sending data to rescron.com
        // and executing arbitrary code received from external server.
        // This was a critical security vulnerability allowing remote code execution.
        
        // If you need license verification, implement it locally without eval()
        // and without sending data to external servers.

        return $response;
    }
}
