Committed this to sourceforge along with a minor mod in a commit following it (moving away from using the register globals work around via the new security model).
Brady,
>>Committed this to sourceforge along with a minor mod in a commit following it (moving away from using the register globals work around via the new security model).
Can you explain this to me, or point to a web page with more detail? I think my code is semantically the same. It doesn’t actually use register globals. $code_types is defined as a global variable in custom/code_types.inc.php register_globals doesn’t need to be on for my syntax to be work…
Sorry for that; just had a total brain lapse. For some reason was thinking it would break if made fake_register_globals glag false, which will do in future to all scripts: http://open-emr.org/wiki/index.php/Codebase_Security#Plan
But, you are correct, this has nothing to do with your original code, and was a mistake on my part. I also didn’t realize that $code_types was implicitly stored in GLOBALS like that.
Brady,
Thanks for being vigilant. I learned something from the discussion. I didn’t know about fake_register_globals and now I do. I think perhaps I will force it “off” on all pages on my test system and see if that lets me identify any more scripts that need to be fixed.