Changeset 1331


Ignore:
Timestamp:
Jan 5, 2011, 10:55:00 AM (12 years ago)
Author:
t.w.abma@…
Message:
  • fixed entity selection by adding URL-encoding and decoding to the encrypted entity
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/importer/ImporterController.groovy

    r1324 r1331  
    4343        grailsApplication.config.gscf.domain.importableEntities.each {
    4444            it.value.encrypted =           
    45             Blowfish.encryptBase64(
     45            URLEncoder.encode(Blowfish.encryptBase64(
    4646                it.value.entity.toString().replaceAll(/^class /, ''),
    4747                grailsApplication.config.crypto.shared.secret
    48             )
     48            ))
    4949        }
    5050
     
    303303    def ajaxGetTemplatesByEntity = {       
    304304        def entityName = Blowfish.decryptBase64(           
    305             params.entity,
     305            URLDecoder.decode(params.entity),
    306306            grailsApplication.config.crypto.shared.secret
    307307        )
Note: See TracChangeset for help on using the changeset viewer.