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

[eluser]sophistry[/eluser]
here is the standard set of permitted uri chars:
Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';

note that the only thing that this config item is used for is in the URI.php lib where it either accepts or rejects the URI and passes it on.

Code:
/**
     * Filter segments for malicious characters
     *
     * @access    private
     * @param    string
     * @return    string
     */    
    function _filter_uri($str)
    {
        if ($str != '' AND $this->config->item('permitted_uri_chars') != '')
        {
            if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str))
            {
                exit('The URI you submitted has disallowed characters.');
            }
        }
            
        return $str;
    }

so, the problem isn't with the permitted chars because otherwise you would be getting a "this URI has disallowed chars" message.

the problem is elsewhere.

i found this little quizzical note in the Input.php lib. maybe that will help?
Code:
/*
         * URL Decode
         *
         * Just in case stuff like this is submitted:
         *
         * <a href="http://www.google.com">Google</a>
         *
         * Note: Use rawurldecode() so it does not remove plus signs
         *
         */
        $str = rawurldecode($str);


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