Skip to content
This repository
Browse code

Added a warning that will appear on the homepage to alert users that

their PCRE installation doesn't have Unicode support which can cause a
whole mess of trouble if gone unnoticed. The warning will only display
if their system doesn't have support, not if it does. Fixes #1113

Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information...
commit b9163b95fefbd1dd859c5befa990b0226979f654 1 parent e91fa68
Joe Beeson authored September 16, 2010 markstory committed September 18, 2010

Showing 1 changed file with 11 additions and 1 deletion. Show diff stats Hide diff stats

  1. 12  cake/libs/view/pages/home.ctp
12  cake/libs/view/pages/home.ctp
@@ -72,6 +72,16 @@ endif;
72 72
 	?>
73 73
 </p>
74 74
 <?php
  75
+	App::import('Core', 'Validation');
  76
+	if (!Validation::alphaNumeric('cakephp')) {
  77
+		echo '<p><span class="notice">';
  78
+		__('PCRE has not been compiled with Unicode support.');
  79
+		echo '<br/>';
  80
+		__('Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
  81
+		echo '</span></p>';
  82
+	}
  83
+?>
  84
+<?php
75 85
 if (isset($filePresent)):
76 86
 	if (!class_exists('ConnectionManager')) {
77 87
 		require LIBS . 'model' . DS . 'connection_manager.php';
@@ -157,4 +167,4 @@ You can also add some CSS styles for your pages at: APP/webroot/css.');
157 167
 	<ul><li><?php __('Recommended Software Books'); ?></li></ul></li>
158 168
 	<li><a href="http://www.cafepress.com/cakefoundation"><?php __('CakePHP gear'); ?> </a>
159 169
 	<ul><li><?php __('Get your own CakePHP gear - Doughnate to Cake'); ?></li></ul></li>
160  
-</ul>
  170
+</ul>

0 notes on commit b9163b9

Please sign in to comment.
Something went wrong with that request. Please try again.