示例#1
0
文件: File.php 项目: radicalsuz/amp
 function authorize($key)
 {
     $authorized_key = false;
     $standard_key = parent::authorize($key);
     if ($standard_key) {
         //check for the slash char
         $illegal_characters = array('/', ':', '?', DIRECTORY_SEPARATOR, ';', ',', '*', '"', '\'', '<', '>', '!', '&', '+', '{', '}', '[', ']', '%', '#', '$');
         $authorized_key = str_replace($illegal_characters, '__IC__', $standard_key);
         //$authorized_key = urlencode($standard_key );
     }
     return $authorized_key;
 }