mediawiki-extensions / mw-calendar

Automatically exported from code.google.com/p/mw-calendar
0 stars 2 forks source link

Navigation broken due to international calendar name (not pure latin) #130

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Wiki Version: 1.12
Calendar Version: 3.8.4

Problem:

Cookie name may contain umlaute which breaks the calendar's navigation

Solution:

replace the regex from
$cookie_name = preg_replace('/(\.|\s)/',  '_', ($title . " " . $name));

to
$cookie_name = preg_replace('/([^a-z])/',  '_', ($title . " " . $name));

Original issue reported on code.google.com by bla...@gmail.com on 29 Jun 2012 at 3:37