Skip to content

Commit

Permalink
change system
Browse files Browse the repository at this point in the history
  • Loading branch information
cjies committed Oct 19, 2013
1 parent d37f60a commit b6be121
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 38 deletions.
4 changes: 0 additions & 4 deletions system/core/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@
* @var string
*
*/
<<<<<<< HEAD
define('CI_VERSION', '2.1.3');
=======
define('CI_VERSION', '2.1.4');
>>>>>>> d1a856c6ad8281e9fd3658d43fc21763589244ec

/**
* CodeIgniter Branch (Core = TRUE, Reactor = FALSE)
Expand Down
22 changes: 0 additions & 22 deletions system/core/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -619,19 +619,6 @@ protected function _remove_evil_attributes($str, $is_image)
$count = 0;
$attribs = array();

<<<<<<< HEAD
// find occurrences of illegal attribute strings without quotes
preg_match_all('/('.implode('|', $evil_attributes).')\s*=\s*([^\s>]*)/is', $str, $matches, PREG_SET_ORDER);

foreach ($matches as $attr)
{

$attribs[] = preg_quote($attr[0], '/');
}

// find occurrences of illegal attribute strings with quotes (042 and 047 are octal quotes)
preg_match_all("/(".implode('|', $evil_attributes).")\s*=\s*(\042|\047)([^\\2]*?)(\\2)/is", $str, $matches, PREG_SET_ORDER);
=======
// find occurrences of illegal attribute strings with quotes (042 and 047 are octal quotes)
preg_match_all('/('.implode('|', $evil_attributes).')\s*=\s*(\042|\047)([^\\2]*?)(\\2)/is', $str, $matches, PREG_SET_ORDER);

Expand All @@ -642,7 +629,6 @@ protected function _remove_evil_attributes($str, $is_image)

// find occurrences of illegal attribute strings without quotes
preg_match_all('/('.implode('|', $evil_attributes).')\s*=\s*([^\s>]*)/is', $str, $matches, PREG_SET_ORDER);
>>>>>>> d1a856c6ad8281e9fd3658d43fc21763589244ec

foreach ($matches as $attr)
{
Expand All @@ -652,11 +638,7 @@ protected function _remove_evil_attributes($str, $is_image)
// replace illegal attribute strings that are inside an html tag
if (count($attribs) > 0)
{
<<<<<<< HEAD
$str = preg_replace("/<(\/?[^><]+?)([^A-Za-z<>\-])(.*?)(".implode('|', $attribs).")(.*?)([\s><])([><]*)/i", '<$1 $3$5$6$7', $str, -1, $count);
=======
$str = preg_replace('/(<?)(\/?[^><]+?)([^A-Za-z<>\-])(.*?)('.implode('|', $attribs).')(.*?)([\s><]?)([><]*)/i', '$1$2 $4$6$7$8', $str, -1, $count);
>>>>>>> d1a856c6ad8281e9fd3658d43fc21763589244ec
}

} while ($count);
Expand Down Expand Up @@ -890,8 +872,4 @@ protected function _csrf_set_hash()
}

/* End of file Security.php */
<<<<<<< HEAD
/* Location: ./system/libraries/Security.php */
=======
/* Location: ./system/libraries/Security.php */
>>>>>>> d1a856c6ad8281e9fd3658d43fc21763589244ec
4 changes: 0 additions & 4 deletions system/database/DB_active_rec.php
Original file line number Diff line number Diff line change
Expand Up @@ -1404,11 +1404,7 @@ public function set_update_batch($key, $index = '', $escape = TRUE)
}
else
{
<<<<<<< HEAD
$not[] = $k.'-'.$v;
=======
$not[] = $k2.'-'.$v2;
>>>>>>> d1a856c6ad8281e9fd3658d43fc21763589244ec
}

if ($escape === FALSE)
Expand Down
4 changes: 0 additions & 4 deletions system/libraries/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -1954,11 +1954,7 @@ public function print_debugger()
}
}

<<<<<<< HEAD
$msg .= "<pre>".$this->_header_str."\n".htmlspecialchars($this->_subject)."\n".htmlspecialchars($this->_finalbody).'</pre>';
=======
$msg .= "<pre>".htmlspecialchars($this->_header_str)."\n".htmlspecialchars($this->_subject)."\n".htmlspecialchars($this->_finalbody).'</pre>';
>>>>>>> d1a856c6ad8281e9fd3658d43fc21763589244ec
return $msg;
}

Expand Down
4 changes: 0 additions & 4 deletions system/libraries/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,7 @@ public function latest()
{
if ( ! $migrations = $this->find_migrations())
{
<<<<<<< HEAD
$this->_error_string = $this->line->lang('migration_none_found');
=======
$this->_error_string = $this->lang->line('migration_none_found');
>>>>>>> d1a856c6ad8281e9fd3658d43fc21763589244ec
return false;
}

Expand Down

0 comments on commit b6be121

Please sign in to comment.