Skip to content

Commit

Permalink
Bug fix : simple quotes escaped correctly in publish and invite custo…
Browse files Browse the repository at this point in the history
…m tags
  • Loading branch information
Benoit Hediard committed Jun 1, 2011
1 parent 834f8b3 commit 0b101ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions sdk/tags/invite-link.cfm
Expand Up @@ -6,8 +6,8 @@
<cfparam name="attributes.style" default="" />
<cfparam name="attributes.title" default="" />
<cfparam name="attributes.toolType" default="Invite" />
<cfset replace(attributes.message, "'", "&rsquo;", "all") />
<cfset replace(attributes.title, "'", "&rsquo;", "all") />
<cfset attributes.message = replace(attributes.message, "'", "\'", "all") />
<cfset attributes.title = replace(attributes.title, "'", "\'", "all") />
</cfsilent>
<cfoutput><a class="#attributes.class#" onclick="<cfif not attributes.disabled>FB.ui({method: 'apprequests', message: '#attributes.message#'}); </cfif>return false;"<cfif attributes.style is not ""> style="#attributes.style#"</cfif> title="#attributes.toolType#"><span>#attributes.label#</span></a></cfoutput>
<cfexit method="exittag" />
7 changes: 3 additions & 4 deletions sdk/tags/publish-link.cfm
Expand Up @@ -11,10 +11,9 @@
<cfparam name="attributes.picture" default="" />
<cfparam name="attributes.source" default="" />
<cfparam name="attributes.style" default="" />
<cfset replace(attributes.description, "'", "&rsquo;", "all") />
<cfset replace(attributes.label, "'", "&rsquo;", "all") />
<cfset replace(attributes.name, "'", "&rsquo;", "all") />
<cfset attributes.description = replace(attributes.description, "'", "\'", "all") />
<cfset attributes.label = replace(attributes.label, "'", "\'", "all") />
<cfset attributes.name = replace(attributes.name, "'", "\'", "all") />
</cfsilent>
<cfoutput><a class="#attributes.class#" onclick="<cfif not attributes.disabled>FB.ui({'caption':'#attributes.caption#', 'description':'#attributes.description#', 'link':'#attributes.link#', 'method':'feed','message':'#attributes.message#', 'name':'#attributes.name#', 'picture':'#attributes.picture#', 'source':'#attributes.source#'}); </cfif>return false;"<cfif attributes.style is not ""> style="#attributes.style#"</cfif> title="#attributes.toolType#"><span>#attributes.label#</span></a></cfoutput>

<cfexit method="exittag" />

0 comments on commit 0b101ae

Please sign in to comment.