Question: ```
#include<stdio.h>
#define SIZE 3
int main() 
{
char *arr[5];
for(i = 0; i < 5; i++) {
arr[i] = (char *)malloc(SIZE * sizeof(char));
scanf("%s",arr[i]);
}
for(i = 0; i < 5; i++) {
printf("%s",arr[i]);
}
return 0;
}

```

In the above code i am scanning more than 3(SIZE) characters but it is working fine.what is the issue?

Answer: 
Remove `single quotes` from your above statement. 

```
    <script>window.location.href="<?php echo base_url(); ?>/index.php/user/view_cart/viewCart";</script>

```

In Condigniter, you can redirect a page using UrlHelper class.

```
    class MyController extends CI_Controller
    {
        public function index()
        {

        }

        public function aFunc()
        {
            $this->load->helper('url');
            redirect('/anotherController/action/', 'refresh');
        }

```
you can add disallowed chracters in permitted\_uri\_chars which exist in config file.
in cofig file

```
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-=';

```

but in your case you added single quote which is wrong, you have to remove single quotes.