]> git.immae.eu Git - github/shaarli/Shaarli.git/commit
Extract the title/charset during page download, and check content type 977/head
authorArthurHoaro <arthur@hoa.ro>
Sat, 30 Sep 2017 09:04:13 +0000 (11:04 +0200)
committerArthurHoaro <arthur@hoa.ro>
Sat, 28 Oct 2017 12:35:49 +0000 (14:35 +0200)
commitd65342e304f92643ba922200953cfebc51e1e482
tree3097c77bb4dd0590c4644422b5dc4369a4186eb7
parenta59bbf50d7530d7e82a91896a210b9da49cb1568
Extract the title/charset during page download, and check content type

Use CURLOPT_WRITEFUNCTION to check the response code and content type (only allow HTML).
Also extract the title and charset during downloading chunk of data, and stop it when everything has been extracted.

Closes #579
application/HttpUtils.php
application/LinkUtils.php
index.php
tests/LinkUtilsTest.php