Skip to content
Browse files

[Fix] Picture urls fixed when using secure mode, queryString was not …

…properly generated
  • Loading branch information...
1 parent 6f89880 commit bee2face7a74828da8fba1ac68207d6c53fc9c03 @floernoult floernoult committed Dec 5, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 grails-app/taglib/grails/plugin/facebooksdk/FacebookJSTagLib.groovy
View
6 grails-app/taglib/grails/plugin/facebooksdk/FacebookJSTagLib.groovy
@@ -129,12 +129,12 @@ class FacebookJSTagLib {
else attrs.queryString = "type=${attrs.type}"
} else if (attrs.height || attrs.width) {
if (attrs.height) attrs.queryString = "height=${attrs.height}"
- if (attrs.queryString) attrs.queryString += attrs.queryString + '&'
+ if (attrs.queryString) attrs.queryString += '&'
if (attrs.width) attrs.queryString = "width=${attrs.width}"
}
if (attrs.protocol == 'https') {
- if (attrs.queryString) attrs.queryString += attrs.queryString + '&'
- attrs.queryString += attrs.queryString + 'return_ssl_resources=1'
+ if (attrs.queryString) attrs.queryString += '&'
+ attrs.queryString += 'return_ssl_resources=1'
}
Map model = [:]
attrs.each { key, value ->

0 comments on commit bee2fac

Please sign in to comment.
Something went wrong with that request. Please try again.