Ignore:
Timestamp:
2011/01/17 18:32:35 (13 years ago)
Author:
spiritofof
Message:

#790(カートの「戻る」ボタンが機能していない)対応。prev_urlが利用できないため専用セッション変数を用いる。

  • REFERER妥当性チェック追加。
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/util/SC_Utils.php

    r19912 r19947  
    22302230        return true; 
    22312231    } 
     2232 
     2233    /** 
     2234     * 指定されたURLのドメインが一致するかを返す 
     2235     * 
     2236     * 戻り値:一致(true) 不一致(false) 
     2237     * 
     2238     * @param string $url 
     2239     * @return boolean 
     2240     */ 
     2241    function sfIsInternalDomain($url) { 
     2242        $netURL = new Net_URL(HTTP_URL); 
     2243        $host = $netURL->host; 
     2244        if (!$host) return false; 
     2245        $host = preg_quote($host, "#"); 
     2246        if (!preg_match("#^(http|https)://{$host}#i", $url)) return false; 
     2247        return true; 
     2248    } 
    22322249} 
    22332250?> 
Note: See TracChangeset for help on using the changeset viewer.