Warning in core/URI.php with rewrite |
[eluser]Unknown[/eluser]
I've followed the instructions for rewriting urls in my .conf (not .htaccess) file, and I'm generating a warning now: Code: A PHP Error was encountered I've fixed it by checking that $_SERVER['SCRIPT_NAME'] is not blank before calling that Code: if (!empty($_SERVER['SCRIPT_NAME'])) I think this is a bug, or possibly a configuration error, though I've followed the instructions at http://codeigniter.com/wiki/mod_rewrite/ Tac
[eluser]Unknown[/eluser]
I believe it is a bug: From system/core/URI.php:149-156 Code: if (strpos($uri, $_SERVER['SCRIPT_NAME']) === 0) This should really be checking whether $_SERVER['SCRIPT_NAME'] has any contents like this (and thus is safe to pass as the second parameter to strpos): Code: if($_SERVER['SCRIPT_NAME'] != '') Nik. Edit: I've posted this up on the bug tracker now ![]() Edit Edit: Gah, those smilies are ugly - Deploying alternative smiley: ^_^ |
Welcome Guest, Not a member yet? Register Sign In |