Using An Em-Dash in an Event Title Puts 2014 into URL String

Bug #1448252 reported by Nat Katin-Borland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL4
Fix Released
Medium
Carlos de la Guardia

Bug Description

Here' s strange one for you.

If you enter the punctuation mark em dash ('—'), a long dash into the title of a KARL event, then it seems to add the year 2014 into the URL string, even though the word 2014 is not in the title.

Communications is complaining that this is confusing because these are upcoming events. The change just seems to happen in the URL, not in the actual title. I have tested this and it does in fact seem to happen.

You can see some examples here:

https://karl.soros.org/offices/files/network-events/ny-2014-organizing-against-religious-violence-in-pakistan-a-conversation-with-jibran-nasir/

https://karl.soros.org/offices/files/network-events/ny-2014-free-markets-vs.-human-rights-does-india-have-to-make-a-choice/

Can you take a look?

Thanks,
Nat

Changed in karl4:
importance: Undecided → Medium
assignee: nobody → Paul Everitt (paul-agendaless)
milestone: none → 006
Changed in karl4:
milestone: 006 → 007
Changed in karl4:
milestone: 007 → 008
Changed in karl4:
milestone: 008 → 009
Changed in karl4:
milestone: 009 → 010
Changed in karl4:
milestone: 010 → 011
Changed in karl4:
milestone: 011 → 012
Changed in karl4:
assignee: Paul Everitt (paul-agendaless) → Carlos de la Guardia (cguardia)
Revision history for this message
Carlos de la Guardia (cguardia) wrote :

This actually could happen with any content, since it happened in the make_name function that changes the title into a string to be used in the URL. The 2014 was not a year, but the hex number for the unicode character for the dash. Added it to our transalation table to avoid displaying anything in this case.

Changed in karl4:
status: New → Fix Committed
Changed in karl4:
status: Fix Committed → Confirmed
status: Confirmed → Fix Committed
Revision history for this message
Nat Katin-Borland (nborland) wrote :

This still seems to be an issue: https://karlstaging.gocept.com/communities/nats-community-of-one/blog/a-piece-of-text-with-the-em-dash-2013-here-it-is/

You can see the 2013 in the URL for the post above when the post title had an em dash.

Revision history for this message
Carlos de la Guardia (cguardia) wrote :

Right, forgot about the ndash. Added.

Changed in karl4:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.