Invalid Method Name:<63.html,>
- /www/svnroot/v2.mfles.cn/vendor/inphper/phpecore/ecore/App.php【165】
155.
156.
$preg = "/^[a-z][a-z0-9_]+$/i";
157.
if(!$group || !preg_match($preg,$group)){
158.
throw new Exception("Invalid Group Name:<$group>",404);
159.
}
160.
if(!$action || !preg_match($preg,$action)){
161.
throw new Exception("Invalid Action Name:<$action>",404);
162.
}
163.
164.
if(!$method || !preg_match($preg,$method)){
165.
166.
throw new Exception("Invalid Method Name:<$method>",404);
}
167.
168.
$action_name_source = $this->alias($action);
169.
$method_name_source = $this->alias($method);
170.
171.
$action_class = sprintf("\\app\\%s\\%s",strtolower($group),ucfirst($action_name_source));
172.
$this->addLog('ActionClass::'.$action_class);
173.
if(class_exists($action_class)){
174.
$method_name1 = sprintf("%s%s",strtolower($_SERVER['REQUEST_METHOD']),ucfirst($method_name_source));
175.
$method_name2 = sprintf('do%s',ucfirst($method_name_source));
- 1、/www/svnroot/v2.mfles.cn/public/index.php 【4】
1.
<?php
2.
define('WEB_ROOT',dirname(__FILE__));
3.
require '../vendor/autoload.php';
4.
ecore\App::load()->run();