felt quirky, might commit later
This commit is contained in:
parent
bca265aea6
commit
16ee0b368f
7 changed files with 1039 additions and 456 deletions
|
@ -143,7 +143,7 @@ class frontend{
|
|||
|
||||
$payload .=
|
||||
'">' .
|
||||
'<img class="thumb" src="/proxy?i=' . urlencode($site["thumb"]["url"]) . '&s=' . $size . '" alt="thumb">';
|
||||
'<img class="thumb" src="' . $this->htmlimage($site["thumb"]["url"], $size) . '" alt="thumb">';
|
||||
|
||||
if($duration !== null){
|
||||
|
||||
|
@ -1273,6 +1273,21 @@ class frontend{
|
|||
return http_build_query($out);
|
||||
}
|
||||
|
||||
public function htmlimage($image, $format){
|
||||
|
||||
if(
|
||||
preg_match(
|
||||
'/^data:/',
|
||||
$image
|
||||
)
|
||||
){
|
||||
|
||||
return htmlspecialchars($image);
|
||||
}
|
||||
|
||||
return "/proxy.php?i=" . urlencode($image) . "&s=" . $format;
|
||||
}
|
||||
|
||||
public function htmlnextpage($gets, $npt, $page){
|
||||
|
||||
$query = $this->buildquery($gets);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue