Closed Bug 880968 Opened 11 years ago Closed 11 years ago

OpenGraph extension is double-encoding titles (– visible when sharing a link on facebook)

Categories

(bugzilla.mozilla.org :: Extensions, defect)

Production
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jidanni, Assigned: glob)

Details

User Agent: Mozilla/5.0 (X11; Linux i686; rv:23.0) Gecko/20130531 Firefox/23.0 Iceweasel/23.0a2 (Nightly/Aurora)
Build ID: 20130531004016

Steps to reproduce:

Shared https://bugzilla.mozilla.org/show_bug.cgi?id=880962 via
http://www.facebook.com/groups/tg.taiwan/permalink/548400041893242/?comment_id=548511208548792&offset=0&total_comments=2


Actual results:

The title has a disgraceful "&ndash":
880962 – video only plays with midori 


Expected results:

Please negotiate with the Facebook corporation to make sure no such embarrassments happen in the future.
<meta property="og:title" content="880968 &amp;ndash; Sharing a bug in a Facebook comment looks terrible">

we're double-encoding the title.
Assignee: nobody → glob
Status: UNCONFIRMED → NEW
Component: General → Extensions: Other
Ever confirmed: true
Summary: Sharing a bug in a Facebook comment looks terrible → OpenGraph extension is double-encoding titles (&ndash; visible when sharing a link on facebook)
somewhat unexpectedly, the title string passed to the templates is already html escaped.

Committing to: bzr+ssh://bjones%40mozilla.com@bzr.mozilla.org/bmo/4.2/
modified extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl
Committed revision 8834.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Component: Extensions: Other → Extensions
You need to log in before you can comment on or make changes to this bug.