avoid code injection in php api client

This commit is contained in:
wing328
2016-06-27 21:51:27 +08:00
parent 31092585f0
commit 1638adb79e
49 changed files with 608 additions and 599 deletions

View File

@@ -11,12 +11,12 @@
*/
/**
* Swagger Petstore
* Swagger Petstore =end
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ =end
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* OpenAPI spec version: 1.0.0 =end
* Contact: apiteam@swagger.io =end
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -102,7 +102,7 @@ class Configuration
*
* @var string
*/
protected $host = 'http://petstore.swagger.io/v2';
protected $host = 'https://petstore.swagger.io */ =end/v2 */ =end';
/**
* Timeout (second) of the HTTP request, by default set to 0, no timeout
@@ -522,7 +522,7 @@ class Configuration
$report = 'PHP SDK (Swagger\Client) Debug Report:' . PHP_EOL;
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . phpversion() . PHP_EOL;
$report .= ' OpenAPI Spec Version: 1.0.0' . PHP_EOL;
$report .= ' OpenAPI Spec Version: 1.0.0 =end' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
return $report;