Am I breaking any “php good practice” in the following php array which deals with 3 (human) languages?

后端 未结 6 1655
执笔经年
执笔经年 2021-01-03 10:47

This is the most optimal way of dealing with a multilingual website I can think of, right now (not sure) which doesn\'t involve gettext, zend_translate or any php plugin or

6条回答
  •  抹茶落季
    2021-01-03 11:41

    The only way that this could be xss is if you have register_globals=On and you don't set $lang['showcase_lil'] or other $lang's. But I don't think you have to worry about this. So I think your in the clear.

    as an xss test: http://127.0.0.1/whatever.php?lang[showcase_lil]=alert(/xss/)

提交回复
热议问题