8000 Sanitized input · agurchand/codeigniter-upload@1ab1b5a · GitHub
[go: up one dir, main page]

Skip to content

Commit 1ab1b5a

Browse files
committed
Sanitized input
1 parent bea690b commit 1ab1b5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/controllers/Upload.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public function file_data(){
2727
}else{
2828

2929
//get the form values
30-
$data['pic_title'] = $this->input->post('pic_title');
31-
$data['pic_desc'] = $this->input->post('pic_desc');
30+
$data['pic_title'] = $this->input->post('pic_title', TRUE);
31+
$data['pic_desc'] = $this->input->post('pic_desc', TRUE);
3232

3333
//file upload code
3434
//set file upload settings

0 commit comments

Comments
 (0)
0