deraadt / Moodle-block_progress

A time management tool for you and your students
http://moodle.org/plugins/view.php?plugin=block_progress
23 stars 54 forks source link

Remove (make safe) "single quote" character from date string (which brea... #1

Closed nadavkav closed 11 years ago

nadavkav commented 11 years ago

...ks JS)

When using Hebrew language in the course, Date strings inclue "Single Quote" chars just after the "Day" element in the Date format string. It breaks the JavaScript :-(

It might happen on other non English languages. so I am adding this safty check which remove the "Single Quote" char from the string.

Please code review, In case this hack needs to be applied elsewhere too.

Nadav :-)