summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/frontend.php2
-rw-r--r--lib/fuckhtml.php12
2 files changed, 12 insertions, 2 deletions
diff --git a/lib/frontend.php b/lib/frontend.php
index 1c3eb09..5579635 100644
--- a/lib/frontend.php
+++ b/lib/frontend.php
@@ -1302,7 +1302,7 @@ class frontend{
return htmlspecialchars($image);
}
- return "/proxy?i=" . urlencode($image) . "&s=" . $format;
+ return "/proxy.php?i=" . urlencode($image) . "&s=" . $format;
}
public function htmlnextpage($gets, $npt, $page){
diff --git a/lib/fuckhtml.php b/lib/fuckhtml.php
index f3a6efe..8b5eba5 100644
--- a/lib/fuckhtml.php
+++ b/lib/fuckhtml.php
@@ -240,7 +240,17 @@ class fuckhtml{
public function getElementsByFuzzyAttributeValue(string $name, string $value, $collection = null){
$elems = $this->getElementsByAttributeName($name, $collection);
- $value = explode(" ", $value);
+ $value =
+ explode(
+ " ",
+ trim(
+ preg_replace(
+ '/ +/',
+ " ",
+ $value
+ )
+ )
+ );
$return = [];