Changeset 18274 for other-projects


Ignore:
Timestamp:
12/18/08 19:19:50 (12 years ago)
Author:
cc108
Message:

add quotes to ensure that arguments are strings

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.