#51 preg_match()를 substr_compare() 또는 strncmp()로 대체

This commit is contained in:
bnu 2013-11-22 12:50:01 +09:00
parent 681a9b2d07
commit 63e0fd6f3b
20 changed files with 68 additions and 61 deletions

View file

@ -122,7 +122,7 @@ class extract
FileHandler::removeFile($this->cache_index_file);
$this->index_fd = fopen($this->cache_index_file,"a");
// If local file
if(!preg_match('/^http:/i',$this->filename))
if(strncasecmp('http://', $this->filename, 7) !== 0)
{
if(!file_exists($this->filename)) return new Object(-1,'msg_no_xml_file');
$this->fd = fopen($this->filename,"r");