403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/mail/emailrelay/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/mail/emailrelay/files/patch-src_main_configuration.cpp
--- src/main/configuration.cpp.orig	2013-12-07 22:55:50 UTC
+++ src/main/configuration.cpp
@@ -86,10 +86,14 @@ G::Strings Main::Configuration::listenin
 	// the required list of addresses
 	for( G::Strings::iterator p = result.begin() ; p != result.end() ; )
 	{
-		if( protocol.empty() || protocol == G::Str::head( *p , (*p).find('=') , protocol ) )
-			*p++ = G::Str::tail( *p , (*p).find('=') , *p ) ;
-		else
-			p = result.erase( p ) ;
+		std::string::size_type pos = (*p).find('=');
+		if( pos != std::string::npos ) {
+			if( protocol.empty() || protocol == G::Str::head( *p , pos , protocol ) )
+				*p++ = G::Str::tail( *p , pos , *p ) ;
+			else
+				p = result.erase( p ) ;
+		} else
+			++p;
 	}
 
 	return result ;

Youez - 2016 - github.com/yon3zu
LinuXploit