git.cweiske.de
/
phinde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
support base href
[phinde.git]
/
bin
/
index.php
diff --git
a/bin/index.php
b/bin/index.php
index 7550ad3c0667778e15852715c828b7cf5b162939..d110423b4c6b81a5065afec5e35d90ba0c1d6b70 100755
(executable)
--- a/
bin/index.php
+++ b/
bin/index.php
@@
-72,6
+72,14
@@
$doc = new \DOMDocument();
@$doc->loadHTML($res->getBody());
$dx = new \DOMXPath($doc);
@$doc->loadHTML($res->getBody());
$dx = new \DOMXPath($doc);
+$xbase = $dx->evaluate('/html/head/base[@href]')->item(0);
+if ($xbase) {
+ $base = $base->resolve(
+ $xbase->attributes->getNamedItem('href')->textContent
+ );
+}
+
+
//remove script tags
removeTags($doc, 'script');
removeTags($doc, 'style');
//remove script tags
removeTags($doc, 'script');
removeTags($doc, 'style');