D

3 Messages

 • 

100 Points

Friday, December 15th, 2023 11:45 PM

Closed

Solved

BUG REPORT: Box Office Mojo 'Weekend Top 5' embeddable widget cannot handle apostrophes in movie titles

This post is intended for Box Office Mojo's developers but may be of interest to others.

My trusty Box Office Mojo Weekend Top 5 widget failed a few weeks ago, and I believe I traced the issue to code that does not account for apostrophes in movie titles.  The offending title was "Five Nights at Freddy's" and can be seen tripping up the code in the following query result (see highlighted character):

This results in an error that can be spotted in Chrome's Developer Tools:



Now that the offending punctuation mark has dropped from the Top 5, things are back to normal:


This seems like a simple case of performing proper escaping of the text fields.

Love the widget.  Hope this helps!

--David

Employee

 • 

890 Messages

 • 

9.6K Points

9 months ago

Hello hello,

 

Thank you for reporting this.

 

I have escalated your message to the correct team and will let you know when I receive an update.

Employee

 • 

17.2K Messages

 • 

310.1K Points

9 months ago

Hi @dekafilm -

The issue has now been resolved.  Cheers!