[xoops-cvslog 372] CVS update: xoops2jp/html/include

Back to archive index

Minahito minah****@users*****
2005年 8月 25日 (木) 12:17:09 JST


Index: xoops2jp/html/include/functions.php
diff -u xoops2jp/html/include/functions.php:1.4 xoops2jp/html/include/functions.php:1.4.2.1
--- xoops2jp/html/include/functions.php:1.4	Wed Aug  3 21:39:11 2005
+++ xoops2jp/html/include/functions.php	Thu Aug 25 12:17:09 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: functions.php,v 1.4 2005/08/03 12:39:11 onokazu Exp $
+// $Id: functions.php,v 1.4.2.1 2005/08/25 03:17:09 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -460,6 +460,15 @@
     //} else {
         $ret = isset($_SERVER[$key]) ? $_SERVER[$key] : $_ENV[$key];
     //}
+
+    switch($key) {
+        case 'PHP_SELF':
+        case 'PATH_INFO':
+        case 'PATH_TRANSLATED':
+            $ret = htmlspecialchars($ret,ENT_QUOTES);
+            break;
+    }
+
     return $ret;
 }
 


xoops-cvslog メーリングリストの案内
Back to archive index