--- tinymce.module.orig	2007-05-06 11:41:35.000000000 +1000
+++ tinymce.module	2007-12-21 17:38:27.000000000 +1100
@@ -1125,7 +1125,7 @@
     // If the PHP option wasn't selected
     if ($edit->settings['access'] < 2) {
       $path = drupal_get_path_alias($_GET['q']);
-      $regexp = '/^('. preg_replace(array('/(\r\n?|\n)/', '/\\\\\*/', '/(^|\|)\\\\<front\\\\>($|\|)/'), array('|', '.*', '\1'. preg_quote(variable_get('site_frontpage', 'node'), '/') .'\2'), preg_quote($edit->settings['access_pages'], '/')) .')$/';
+      $regexp = '/^([a-z]{2})\/('. preg_replace(array('/(\r\n?|\n)/', '/\\\\\*/', '/(^|\|)\\\\<front\\\\>($|\|)/'), array('|', '.*', '\1'. preg_quote(variable_get('site_frontpage', 'node'), '/') .'\2'), preg_quote($edit->settings['access_pages'], '/')) .')$/';
       $page_match = !($edit->settings['access'] xor preg_match($regexp, $path));
     }
     else {
