mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 22:17:35 -05:00 
			
		
		
		
	
						commit
						47fe251804
					
				@ -1 +1 @@
 | 
				
			|||||||
5.6.16
 | 
					5.6.17
 | 
				
			||||||
@ -15,7 +15,7 @@ class Cors
 | 
				
			|||||||
            // ALLOW OPTIONS METHOD
 | 
					            // ALLOW OPTIONS METHOD
 | 
				
			||||||
            $headers = [
 | 
					            $headers = [
 | 
				
			||||||
                'Access-Control-Allow-Methods'=> 'POST, GET, OPTIONS, PUT, DELETE',
 | 
					                'Access-Control-Allow-Methods'=> 'POST, GET, OPTIONS, PUT, DELETE',
 | 
				
			||||||
                'Access-Control-Allow-Headers'=> 'X-React,X-API-PASSWORD-BASE64,X-API-COMPANY-KEY,X-CLIENT-VERSION,X-API-SECRET,X-API-TOKEN,X-API-PASSWORD,DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Disposition,Range,X-CSRF-TOKEN,X-XSRF-TOKEN,X-LIVEWIRE',
 | 
					                'Access-Control-Allow-Headers'=> 'X-CLIENT-PLATFORM,X-React,X-API-PASSWORD-BASE64,X-API-COMPANY-KEY,X-CLIENT-VERSION,X-API-SECRET,X-API-TOKEN,X-API-PASSWORD,DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Disposition,Range,X-CSRF-TOKEN,X-XSRF-TOKEN,X-LIVEWIRE',
 | 
				
			||||||
            ];
 | 
					            ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            return Response::make('OK', 200, $headers);
 | 
					            return Response::make('OK', 200, $headers);
 | 
				
			||||||
 | 
				
			|||||||
@ -44,29 +44,29 @@ trait MakesInvoiceHtml
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        return Blade::render($string, $data); //potential fix for removing eval()
 | 
					        return Blade::render($string, $data); //potential fix for removing eval()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $php = Blade::compileString($string);
 | 
					        // $php = Blade::compileString($string);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $obLevel = ob_get_level();
 | 
					        // $obLevel = ob_get_level();
 | 
				
			||||||
        ob_start();
 | 
					        // ob_start();
 | 
				
			||||||
        extract($data, EXTR_SKIP);
 | 
					        // extract($data, EXTR_SKIP);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        try {
 | 
					        // try {
 | 
				
			||||||
            eval('?'.'>'.$php);
 | 
					        //     eval('?'.'>'.$php);
 | 
				
			||||||
        } catch (Exception $e) {
 | 
					        // } catch (Exception $e) {
 | 
				
			||||||
            while (ob_get_level() > $obLevel) {
 | 
					        //     while (ob_get_level() > $obLevel) {
 | 
				
			||||||
                ob_end_clean();
 | 
					        //         ob_end_clean();
 | 
				
			||||||
            }
 | 
					        //     }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            throw $e;
 | 
					        //     throw $e;
 | 
				
			||||||
        } catch (Throwable $e) {
 | 
					        // } catch (Throwable $e) {
 | 
				
			||||||
            while (ob_get_level() > $obLevel) {
 | 
					        //     while (ob_get_level() > $obLevel) {
 | 
				
			||||||
                ob_end_clean();
 | 
					        //         ob_end_clean();
 | 
				
			||||||
            }
 | 
					        //     }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            throw new \Exception($e->getMessage());
 | 
					        //     throw new \Exception($e->getMessage());
 | 
				
			||||||
        }
 | 
					        // }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return ob_get_clean();
 | 
					        // return ob_get_clean();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /*
 | 
					    /*
 | 
				
			||||||
 | 
				
			|||||||
@ -15,8 +15,8 @@ return [
 | 
				
			|||||||
    'require_https' => env('REQUIRE_HTTPS', true),
 | 
					    'require_https' => env('REQUIRE_HTTPS', true),
 | 
				
			||||||
    'app_url' => rtrim(env('APP_URL', ''), '/'),
 | 
					    'app_url' => rtrim(env('APP_URL', ''), '/'),
 | 
				
			||||||
    'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
 | 
					    'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
 | 
				
			||||||
    'app_version' => env('APP_VERSION','5.6.16'),
 | 
					    'app_version' => env('APP_VERSION','5.6.17'),
 | 
				
			||||||
    'app_tag' => env('APP_TAG','5.6.16'),
 | 
					    'app_tag' => env('APP_TAG','5.6.17'),
 | 
				
			||||||
    'minimum_client_version' => '5.0.16',
 | 
					    'minimum_client_version' => '5.0.16',
 | 
				
			||||||
    'terms_version' => '1.0.1',
 | 
					    'terms_version' => '1.0.1',
 | 
				
			||||||
    'api_secret' => env('API_SECRET', ''),
 | 
					    'api_secret' => env('API_SECRET', ''),
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user