One more unicode normalization fix: don't die horribly on arrays, and get the PATH_IN...
[lhc/web/wiklou.git] / index.php
index 045b0a1..8f60e00 100644 (file)
--- a/index.php
+++ b/index.php
@@ -28,6 +28,10 @@ $action = $wgRequest->getVal( "action", "view" );
 
 if( isset( $_SERVER['PATH_INFO'] ) && $wgUsePathInfo ) {
        $title = substr( $_SERVER['PATH_INFO'], 1 );
+       if( !$wgUseLatin1 ) {
+               require_once( 'includes/normal/UtfNormal.php' );
+               $title = UtfNormal::toNFC( $title );
+       }
 } else {
        $title = $wgRequest->getVal( "title" );
 }