Changed version to '1.3.0-beta.2-dev' [skip ci]
Install: Use foreach to check for obsolete config files
Install: escape strings inserted in config_inc.php

This ensures it is not possible to inject arbitrary PHP code into the
generated config file.

Fixes #12908, #17012