Plan 9 from Bell Labs’s /usr/web/sources/contrib/mospak/abaco-html4/abaco-base-href-guard.diff

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


--- sys/src/cmd/abaco/util.c
+++ sys/src/cmd/abaco/util.c
@@ -365,7 +365,7 @@
 Rune *
 getbase(Page *p)
 {
-	if(p->doc)
+	if(p->doc && p->doc->base != nil && validurl(p->doc->base))
 		return p->doc->base;
 	if(p->url->act.r)
 		return p->url->act.r;

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.