Change the prepare function for work also without allow_url_include
enabled.