Changeset 1673


Ignore:
Timestamp:
Mar 24, 2011, 10:10:37 AM (12 years ago)
Author:
robert@…
Message:

Added default mail sender to the configuration (#342) and improved proxy to pubmed (#235)

Location:
trunk/grails-app
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/Config.groovy

    r1661 r1673  
    111111
    112112// Needed for the (copy of) the Spring Security UI plugin
     113grails.mail.default.from = 'gscf@dbnp.org'
    113114grails.plugins.springsecurity.ui.forgotPassword.emailFrom = 'gscf@dbnp.org'
    114115grails.plugins.springsecurity.ui.forgotPassword.emailSubject = 'Password reset GSCF'
  • trunk/grails-app/conf/config-dbnpdemo.properties

    r1669 r1673  
    1818
    1919# SpringSecurity E-Mail Settings
     20grails.mail.default.from=gscf@dbnp.org
    2021grails.plugins.springsecurity.ui.forgotPassword.emailFrom=gscf.default.installation@gmail.com
    2122
  • trunk/grails-app/controllers/dbnp/studycapturing/StudyWizardController.groovy

    r1665 r1673  
    20072007                def url = "http://eutils.ncbi.nlm.nih.gov/entrez/eutils";
    20082008                def util = params.remove( "_utility" )
     2009               
     2010                if( !util ) {
     2011                        response.setStatus( 404, "File not found" );
     2012                        return;
     2013                }
     2014       
    20092015                def paramString = params.collect { k, v -> k + '=' + v.encodeAsURL() }.join( '&' );
    20102016
     
    20122018
    20132019                // Return the output of the request
    2014                 // render fullUrl;
    2015                 render(
    2016                     text:           new URL( fullUrl ).getText(),
    2017                     contentType:    "text/xml",
    2018                     encoding:       "UTF-8"
    2019                 );
     2020                response.contentType = "text/xml"
     2021                response.characterEncoding = "UTF-8"
     2022                response <<  new URL( fullUrl ).openStream()
     2023               
     2024                render ""
    20202025        }
    20212026}
Note: See TracChangeset for help on using the changeset viewer.