Changeset 6644

Show
Ignore:
Timestamp:
09/10/08 21:45:52 (4 months ago)
Author:
daybreaker
Message:

refs #1085

  • IIS7용 Rewrite 모듈의 강제 인코딩 변환 대응
  • IIS5.1/6.0용 Ionics ISAPI Rewrite Filter 대응
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rewrite.php

    r6632 r6644  
    1010    } 
    1111    if (!empty($_SERVER['PRELOAD_CONFIG']) && file_exists('config.php')) require_once ROOT."/config.php"; 
     12    // IIS 7.0 and URL Rewrite Module CTP 
    1213    if (isset($_SERVER['HTTP_X_ORIGINAL_URL'])) 
    13         $_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_ORIGINAL_URL']; 
     14        $_SERVER['REQUEST_URI'] = @iconv('cp949', 'utf-8', $_SERVER['HTTP_X_ORIGINAL_URL']); 
     15    // IIS 5.x/6.0 and Ionics ISAPI Rewrite Filter 
     16    if (isset($_SERVER['HTTP_X_REWRITE_URL'])) 
     17        $_SERVER['REQUEST_URI'] = urldecode($_SERVER['HTTP_X_REWRITE_URL']); 
    1418    /* Retrieve Access Parameter Information. */ 
    1519    $accessInfo = array(