Skip to content

Commit 001852a

Browse files
author
Phil Sturgeon
committed
Skip file extension checking on arrayed GET values.
1 parent b25ef86 commit 001852a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/libraries/REST_Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ private function _detect_output_format()
300300
}
301301

302302
// Check if a file extension is used
303-
elseif ($this->_get_args AND preg_match($pattern, end($this->_get_args), $matches))
303+
elseif ($this->_get_args AND ! is_array(end($this->_get_args)) AND preg_match($pattern, end($this->_get_args), $matches))
304304
{
305305
// The key of the last argument
306306
$last_key = end(array_keys($this->_get_args));

0 commit comments

Comments
 (0)