forked from Wavyzz/dolibarr
Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0
This commit is contained in:
@@ -245,7 +245,7 @@ class nusoap_server extends nusoap_base {
|
||||
}
|
||||
$this->debug("In service, query string=$qs");
|
||||
|
||||
if (ereg('wsdl', $qs) ){
|
||||
if (preg_match('/wsdl/', $qs) ){
|
||||
$this->debug("In service, this is a request for WSDL");
|
||||
if($this->externalWSDLURL){
|
||||
if (strpos($this->externalWSDLURL,"://")!==false) { // assume URL
|
||||
@@ -717,7 +717,7 @@ class nusoap_server extends nusoap_base {
|
||||
$payload .= $this->getDebugAsXMLComment();
|
||||
}
|
||||
$this->outgoing_headers[] = "Server: $this->title Server v$this->version";
|
||||
ereg('\$Revisio' . 'n: ([^ ]+)', $this->revision, $rev);
|
||||
preg_match('/\$Revisio' . 'n: ([^ ]+)/', $this->revision, $rev);
|
||||
$this->outgoing_headers[] = "X-SOAP-Server: $this->title/$this->version (".$rev[1].")";
|
||||
// Let the Web server decide about this
|
||||
//$this->outgoing_headers[] = "Connection: Close\r\n";
|
||||
|
||||
Reference in New Issue
Block a user