Index: branches/version-2_12-dev/html/install/index.php
===================================================================
--- branches/version-2_12-dev/html/install/index.php	(revision 21741)
+++ branches/version-2_12-dev/html/install/index.php	(revision 21756)
@@ -209,5 +209,5 @@
             $arrSendData = array();
             foreach ($_POST as $key => $val) {
-                if (ereg('^senddata_*', $key)) {
+                if (preg_match('/^senddata_*/', $key)) {
                     $arrSendDataTmp = array(str_replace('senddata_', '', $key) => $val);
                     $arrSendData = array_merge($arrSendData, $arrSendDataTmp);
@@ -492,5 +492,5 @@
     $normal_url = $objWebParam->getValue('normal_url');
     // 語尾に'/'をつける
-    if (!ereg('/$', $normal_url)) $normal_url = $normal_url . '/';
+    $normal_url = rtrim($normal_url, '/') . '/';
 
     $arrDsn = getArrayDsn($objDBParam);
@@ -572,7 +572,5 @@
     $secure_url = $objWebParam->getValue('secure_url');
     // 語尾に'/'をつける
-    if (!ereg('/$', $secure_url)) {
-        $secure_url = $secure_url . '/';
-    }
+    $secure_url = rtrim($secure_url, '/') . '/';
     $objPage->tpl_sslurl = $secure_url;
     //EC-CUBEオフィシャルサイトからのお知らせURL
@@ -588,5 +586,5 @@
         $normal_url = HTTP_URL;
     } else {
-        $dir = ereg_replace('install/.*$', '', $_SERVER['REQUEST_URI']);
+        $dir = preg_replace('|install/.*$|', '', $_SERVER['REQUEST_URI']);
         $normal_url = 'http://' . $_SERVER['HTTP_HOST'] . $dir;
     }
@@ -595,5 +593,5 @@
         $secure_url = HTTPS_URL;
     } else {
-        $dir = ereg_replace('install/.*$', '', $_SERVER['REQUEST_URI']);
+        $dir = preg_replace('|install/.*$|', '', $_SERVER['REQUEST_URI']);
         $secure_url = 'http://' . $_SERVER['HTTP_HOST'] . $dir;
     }
@@ -696,6 +694,6 @@
 
     // ディレクトリ名のみ取得する
-    $normal_dir = ereg_replace('^https?://[a-zA-Z0-9_~=&\?\.\-]+', '', $arrRet['normal_url']);
-    $secure_dir = ereg_replace('^https?://[a-zA-Z0-9_~=&\?\.\-]+', '', $arrRet['secure_url']);
+    $normal_dir = preg_replace('|^https?://[a-zA-Z0-9_~=&\?\.\-]+|', '', $arrRet['normal_url']);
+    $secure_dir = preg_replace('|^https?://[a-zA-Z0-9_~=&\?\.\-]+|', '', $arrRet['secure_url']);
 
     if ($normal_dir != $secure_dir) {
@@ -745,5 +743,5 @@
             $objErr->arrErr['all'] = '>> ' . $objDB->message . '<br />';
             // エラー文を取得する
-            ereg('\[(.*)\]', $objDB->userinfo, $arrKey);
+            preg_match('/\[(.*)\]/', $objDB->userinfo, $arrKey);
             $objErr->arrErr['all'] .= $arrKey[0] . '<br />';
             GC_Utils_Ex::gfPrintLog($objDB->userinfo, INSTALL_LOG);
@@ -786,5 +784,5 @@
                         $arrErr['all'] = '>> ' . $ret->message . '<br />';
                         // エラー文を取得する
-                        ereg('\[(.*)\]', $ret->userinfo, $arrKey);
+                        preg_match('/\[(.*)\]/', $ret->userinfo, $arrKey);
                         $arrErr['all'] .= $arrKey[0] . '<br />';
                         $objPage->update_mess .= '>> テーブル構成の変更に失敗しました。<br />';
@@ -895,16 +893,12 @@
     $normal_url = $objWebParam->getValue('normal_url');
     // 語尾に'/'をつける
-    if (!ereg('/$', $normal_url)) {
-        $normal_url = $normal_url . '/';
-    }
+    $normal_url = rtrim($normal_url, '/') . '/';
 
     $secure_url = $objWebParam->getValue('secure_url');
     // 語尾に'/'をつける
-    if (!ereg('/$', $secure_url)) {
-        $secure_url = $secure_url . '/';
-    }
+    $secure_url = rtrim($secure_url, '/') . '/';
 
     // ディレクトリの取得
-    $url_dir = ereg_replace('^https?://[a-zA-Z0-9_:~=&\?\.\-]+', '', $normal_url);
+    $url_dir = preg_replace('|^https?://[a-zA-Z0-9_:~=&\?\.\-]+|', '', $normal_url);
 
     //管理機能SSL制限
