31
31
/**
32
32
* Checks if the request for the webservice is a documentation request (eg:
33
33
* WSDL) or an actual webservice call.
34
- *
35
- * The implementation of this method is based on soap_server::service() and
36
- * adapted to work independent of the usage of nusoap
37
- *
38
- * @param $p_service The webservice class instance.
39
- * @param $p_data The input that is based on the post data.
40
34
*/
41
- function mci_is_webservice_call ( $ p_service , $ p_data )
35
+ function mci_is_webservice_call ()
42
36
{
43
37
global $ QUERY_STRING ;
44
38
global $ _SERVER ;
@@ -53,14 +47,12 @@ function mci_is_webservice_call( $p_service, $p_data )
53
47
54
48
if ( isset ( $ t_qs ) && preg_match ( '/wsdl/ ' , $ t_qs ) ){
55
49
return false ;
56
- } else if ( $ p_data == '' && isset ( $ p_service ) && $ p_service ->wsdl ) {
57
- return false ;
58
50
} else {
59
51
return true ;
60
52
}
61
53
}
62
54
63
- if ( !mci_is_webservice_call ( $ l_oServer , $ t_input ) ) {
55
+ if ( !mci_is_webservice_call () ) {
64
56
# if we have a documentation request, do some tidy up to prevent lame bot loops e.g. /mantisconnect.php/mc_enum_etas/mc_project_get_versions/
65
57
$ parts = explode ( 'mantisconnect.php/ ' , strtolower ($ _SERVER ['SCRIPT_NAME ' ] ), 2 );
66
58
if (isset ( $ parts [1 ] ) && (strlen ( $ parts [1 ] ) > 0 ) ) {
@@ -107,7 +99,7 @@ function mci_is_webservice_call( $p_service, $p_data )
107
99
# only include the MantisBT / MantisConnect related files, if the current
108
100
# request is a webservice call (rather than webservice documentation request,
109
101
# eg: WSDL).
110
- if ( mci_is_webservice_call ( $ l_oServer , $ t_input ) ) {
102
+ if ( mci_is_webservice_call () ) {
111
103
require_once ( 'mc_core.php ' );
112
104
} else {
113
105
# if we have a documentation request, do some tidy up to prevent lame bot loops e.g. /mantisconnect.php/mc_enum_etas/mc_project_get_versions/
0 commit comments