MDL-46269 tool_httpsreplace: minor fixes
commit84a9f58b673035691736991d264b15cbfb55e282
authorMarina Glancy <marina@moodle.com>
Tue, 10 Oct 2017 06:59:31 +0000 (10 14:59 +0800)
committerMarina Glancy <marina@moodle.com>
Mon, 16 Oct 2017 08:53:49 +0000 (16 16:53 +0800)
tree3feff1ba0ba8d6dab4a404eaad972ab47e2efea8
parent109fbd5a15465676fc3ac418ca1ba90dd76153ec
MDL-46269 tool_httpsreplace: minor fixes

- don't call curl() from unittests
- make sure we don't replace links to http:// urls when the embedded contents from the same domain is present
- convert only text or long varchar columns
- improve searching performance, use case-insensitive regex/like instead of LOWER
- add unittests for the above and also for international domains
admin/tool/httpsreplace/classes/url_finder.php
admin/tool/httpsreplace/tests/httpsreplace_test.php