Welcome Guest, Not a member yet? Register   Sign In
spaces in URLs converted to _
#25

[eluser]AtlantixMedia[/eluser]
hold on..now it works (the controller)......go figure......

I ran the same test, still, + are converted to _. I just want to make sure we are running the same test here:

test.php controller
Code:
<?php

class Test extends Controller {

    function Test()
    {
        parent::Controller();    
    }
    
    function index()
    {
        //$this->load->view('welcome_message');
    }

    function query($query)
    {
    echo $query; die;
    }

}

?>

config.php
Code:
$config['permitted_uri_chars'] = "+a-z 0-9~%.:_'-";

URI to test: http://www.yourdomain.com/test/query/wil...+ever+work


I get will_this_ever_work.


however, if I put this file in the root and run it outside of CI, it works:



test.php
Code:
<?php

echo $_GET['q'] . '<br />';

?&gt;
<a href="&lt;?php echo htmlentities('http://www.yourdomain.com/test.php?q=will this ever work');    ?&gt;">click</a><br />
<a href="&lt;?php echo 'http://www.yourdomain.com/test.php?q=will+this+ever+work';    ?&gt;">click</a><br />

please someone shed some light on this. I need to get it fixed fast. thanks


Messages In This Thread
spaces in URLs converted to _ - by El Forum - 04-02-2008, 09:21 AM
spaces in URLs converted to _ - by El Forum - 04-03-2008, 01:29 AM
spaces in URLs converted to _ - by El Forum - 04-03-2008, 02:47 AM
spaces in URLs converted to _ - by El Forum - 04-03-2008, 10:04 AM
spaces in URLs converted to _ - by El Forum - 04-03-2008, 11:29 AM
spaces in URLs converted to _ - by El Forum - 04-04-2008, 01:21 AM
spaces in URLs converted to _ - by El Forum - 04-04-2008, 09:03 AM
spaces in URLs converted to _ - by El Forum - 06-16-2008, 10:09 AM
spaces in URLs converted to _ - by El Forum - 06-17-2008, 07:57 AM
spaces in URLs converted to _ - by El Forum - 06-17-2008, 08:20 AM
spaces in URLs converted to _ - by El Forum - 06-17-2008, 08:34 AM
spaces in URLs converted to _ - by El Forum - 06-18-2008, 11:30 AM
spaces in URLs converted to _ - by El Forum - 06-19-2008, 04:54 AM
spaces in URLs converted to _ - by El Forum - 06-19-2008, 06:59 AM
spaces in URLs converted to _ - by El Forum - 06-19-2008, 07:08 AM
spaces in URLs converted to _ - by El Forum - 06-19-2008, 08:12 AM
spaces in URLs converted to _ - by El Forum - 06-19-2008, 08:19 AM
spaces in URLs converted to _ - by El Forum - 06-19-2008, 08:24 AM
spaces in URLs converted to _ - by El Forum - 06-19-2008, 08:26 AM
spaces in URLs converted to _ - by El Forum - 06-20-2008, 08:01 AM
spaces in URLs converted to _ - by El Forum - 06-20-2008, 01:08 PM
spaces in URLs converted to _ - by El Forum - 06-21-2008, 09:39 AM
spaces in URLs converted to _ - by El Forum - 06-21-2008, 08:52 PM
spaces in URLs converted to _ - by El Forum - 06-23-2008, 07:59 AM
spaces in URLs converted to _ - by El Forum - 06-23-2008, 08:11 AM
spaces in URLs converted to _ - by El Forum - 06-23-2008, 08:26 AM
spaces in URLs converted to _ - by El Forum - 06-25-2008, 12:56 PM
spaces in URLs converted to _ - by El Forum - 06-25-2008, 03:03 PM
spaces in URLs converted to _ - by El Forum - 06-25-2008, 03:14 PM
spaces in URLs converted to _ - by El Forum - 07-02-2008, 09:30 AM
spaces in URLs converted to _ - by El Forum - 07-02-2008, 09:59 AM
spaces in URLs converted to _ - by El Forum - 07-02-2008, 10:35 AM
spaces in URLs converted to _ - by El Forum - 07-02-2008, 11:27 AM
spaces in URLs converted to _ - by El Forum - 07-03-2008, 02:05 AM
spaces in URLs converted to _ - by El Forum - 07-03-2008, 10:10 AM
spaces in URLs converted to _ - by El Forum - 07-03-2008, 10:40 AM
spaces in URLs converted to _ - by El Forum - 10-07-2008, 05:31 AM
spaces in URLs converted to _ - by El Forum - 12-19-2008, 04:42 PM
spaces in URLs converted to _ - by El Forum - 12-19-2008, 05:35 PM
spaces in URLs converted to _ - by El Forum - 01-16-2009, 07:28 AM
spaces in URLs converted to _ - by El Forum - 01-18-2009, 07:21 PM
spaces in URLs converted to _ - by El Forum - 01-18-2009, 11:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB