• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disallowed Key Characters.

#1
[eluser]gox[/eluser]
http://img384.imageshack.us/img384/4524/beztytuutl9.png

Code:
(206)    function _clean_input_keys($str)
    {
         var_dump($str);exit;
         if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str))
         {
            exit('Disallowed Key Characters.');
         }

        return $str;
    }


http://img384.imageshack.us/img384/1497/97712180gq5.png

http://img384.imageshack.us/img384/773/74006341af3.png



Fix it, or burn in hell!

#2
[eluser]aroman[/eluser]
Hello gox, what opera version you are using ?
i havent try to use Opera in browsing my CI project.

Is this a bug in CI?

#3
[eluser]gox[/eluser]
newest opera, from yesterday

Version
9.52
Build
10108

it is CI bug ;p

But it isn't a browser problem, simply CI bug...
there is unespected cookie on same domain (localhost) what cause this error.

#4
[eluser]Derek Allard[/eluser]
Code example please gox. Also, "Fix it, or burn in hell!" is not welcome here, but I'm sure you were joking.

#5
[eluser]gox[/eluser]
What code stample you want??? there is cookie at loalhost, U can see that on screenshots, nothing else, there is no diffrent how my application code look....

_clean_input_keys() function is called automaticly, and $str string taking data from localhost cookie, finding chars diffrent that a-z0-9:_\/- then die....


Fix it, or burn in hell!
U can take it as a joke, or really burn in hell as well Smile

#6
[eluser]Derek Allard[/eluser]
You haven't even explained what you think the problem is, or how to recreate it. Sorry for being dense, but you'll need to walk me through this. Can you give me a simple example controller that I can run in Opera 9.52 that will recreate this please?

Also, it'd be helpful if you could tell me what you expect to happen, vs what is actually happening.

#7
[eluser]gox[/eluser]
OMG, it's so simple bro....

This isn't browser or my script problem, i'll try to explain problem in simplest, ungrammatik english words that i even learn Tongue

On first screenshot you can see Error Msg. generated by CI.

I run TotalCommander, to find function generating error, and success, line 206 in Input.php lib.

I put simple var_dump($str);exit; command, to figure out the problem, u can see it in my first post between first and second screenshot..

var_dump($str);exit; print string visible on second screenshot...

On third screenshost U can see cookies that actually cause problem.

OK, if you want so bad some Controller Sample here you go.....:
Code:
<?php

class Sample extends Controller {

function index() {
   echo '';
   return;
}

}

?>



[Mod edit: removed expletives]

#8
[eluser]Derek Jones[/eluser]
The other cookie is to blame, this is not a bug, this is intentional. Grow up or get lost.

#9
[eluser]gox[/eluser]
I'am grov and even up.
The fact is, if there is any cookie on same domain with disalowed chars, then website are unavavailbe, pain ha?

#10
[eluser]Derek Jones[/eluser]
This protects your CI application from potential security problems. Yes, it's a pain if you encounter it, but your anger is misplaced - you should be looking at the script that created those horrific cookie keys, and thank CI for halting to bring it to your attention. In any case, we do not tolerate the attitude or the language you chose to use, it's not only immature, but it's incredibly unprofessional; nobody thinks it's cute, and you can consider this your only warning.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.