ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 13623 for OpenPNE


Ignore:
Timestamp:
Jul 21, 2010, 7:00:27 PM (12 years ago)
Author:
tajima
Message:

#4433: fixed bug on PHP 5.3

Location:
OpenPNE/trunk/webapp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/OpenPNE/Validator.php

    r6527 r13623  
    7474    function addIniSetting($ini_path)
    7575    {
    76         if (!is_readable($ini_path) ||
    77             !$rules = parse_ini_file($ini_path, true)) {
    78 
    79             return false;
     76        if(version_compare(PHP_VERSION, '5.3.0', '>=')){
     77            if (!is_readable($ini_path) ||
     78                !$rules = parse_ini_file($ini_path, true, INI_SCANNER_RAW)) {
     79                return false;
     80            }
     81        } else {
     82            if (!is_readable($ini_path) ||
     83                !$rules = parse_ini_file($ini_path, true)) {
     84                return false;
     85            }
    8086        }
    8187
  • OpenPNE/trunk/webapp/modules/portal/config.ini

    r5965 r13623  
    77
    88[image]
    9 is_auth = false
     9is_auth = ""
    1010
  • OpenPNE/trunk/webapp/modules/portal/validate/do/edit_rss.ini

    r5856 r13623  
    11[rss_1]
    22type = "regexp"
    3 regexp = "/^s?https?:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+$/"
     3regexp = "/^s?https?:\/\/[-_.!~*\'()a-zA-Z0-9\x3b\/?:\@&=+\$,%#]+$/"
    44default = ""
    55caption = "RSS URL1"
     
    77[rss_2]
    88type = "regexp"
    9 regexp = "/^s?https?:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+$/"
     9regexp = "/^s?https?:\/\/[-_.!~*\'()a-zA-Z0-9\x3b\/?:\@&=+\$,%#]+$/"
    1010default = ""
    1111caption = "RSS URL2"
     
    1313[rss_3]
    1414type = "regexp"
    15 regexp = "/^s?https?:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+$/"
     15regexp = "/^s?https?:\/\/[-_.!~*\'()a-zA-Z0-9\x3b\/?:\@&=+\$,%#]+$/"
    1616default = ""
    1717caption = "RSS URL3"
     
    1919[rss_4]
    2020type = "regexp"
    21 regexp = "/^s?https?:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+$/"
     21regexp = "/^s?https?:\/\/[-_.!~*\'()a-zA-Z0-9\x3b\/?:\@&=+\$,%#]+$/"
    2222default = ""
    2323caption = "RSS URL4"
     
    2525[rss_5]
    2626type = "regexp"
    27 regexp = "/^s?https?:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+$/"
     27regexp = "/^s?https?:\/\/[-_.!~*\'()a-zA-Z0-9\x3b\/?:\@&=+\$,%#]+$/"
    2828default = ""
    2929caption = "RSS URL5"
Note: See TracChangeset for help on using the changeset viewer.