Changeset 18274

Show
Ignore:
Timestamp:
18.12.2008 19:19:50 (11 years ago)
Author:
cc108
Message:

add quotes to ensure that arguments are strings

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/trunk/greenstone3-extension/mat/src/org/greenstone/gsdl3_extension/mat/servlet/MatServlet.java

    r18255 r18274  
    535535     
    536536    if(!proxyHostContent.equals("") && !proxyPortContent.equals("")){ 
    537         proxy_settings = "-proxy_on -proxy_host "+proxyHostContent+" -proxy_port "+proxyPortContent; 
    538     } 
    539  
    540     if(!proxyUserName.equals("") && !proxyUserPassword.equals("")){ 
    541         proxy_settings = proxy_settings + " -user_name " +proxyUserName+" -user_password "+proxyUserPassword; 
    542     } 
     537        proxy_settings = "\"-proxy_on -proxy_host "+proxyHostContent+" -proxy_port "+proxyPortContent+"\""; 
     538 
     539     
     540        if(!proxyUserName.equals("") && !proxyUserPassword.equals("")){ 
     541            proxy_settings = proxy_settings.substring(1,proxy_settings.length()-1); 
     542            proxy_settings = "\""+ proxy_settings + " -user_name " +proxyUserName+" -user_password "+proxyUserPassword +"\""; 
     543        } 
     544    } 
     545 
    543546     
    544547