Skip to content

Commit ffb825b

Browse files
committed
🔧 change constant 'DOT' to string '.'
Signed-off-by: otengkwame <[email protected]>
1 parent 4b86769 commit ffb825b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CodeIgniter/Framework/core/Input.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public function has($index = null, $xss_clean = false)
283283
}
284284

285285
/**
286-
* Fetch only items from the POST array
286+
* Fetch only items from the POST array
287287
*
288288
* @param mixed $indexes Indexes for item to be fetched from $_POST
289289
* @param bool $xss_clean Whether to apply XSS filtering
@@ -490,7 +490,7 @@ public function upload($file = [], $path = '', $name = null)
490490
$this->originalName = $file['name'];
491491
$this->originalMimeType = $file['type'];
492492
$this->filesize = $file['size'];
493-
$this->rawname = substr($this->originalName, 0, strrpos($this->originalName, DOT)-strlen($this->extension));
493+
$this->rawname = substr($this->originalName, 0, strrpos($this->originalName, '.') - strlen($this->extension));
494494

495495
$filename = '';
496496

@@ -1252,7 +1252,7 @@ public function isAjax()
12521252
return $this->isAjaxRequest();
12531253
}
12541254

1255-
/**
1255+
/**
12561256
* Checks request type.
12571257
*
12581258
* @param string $type HTTP verb

0 commit comments

Comments
 (0)