]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- fix for frames with relative src
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 12 Dec 2002 15:58:50 +0000 (15:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pldnotify.awk -> 1.28

pldnotify.awk

index 2b9d31a8ba58beabe674e39a4f25e2960c02a639..5705f80ea837e902af78fb9bd1bc1fc4570afccf 100644 (file)
@@ -79,6 +79,8 @@ function get_links(url,       errno,link,oneline,retval,odp,tmpfile) {
        
        close(tmpfile)
        system("rm -f " tmpfile)
+       urldir=url;
+       sub(/[^\/]+$/,"",urldir)
        if ( errno==0) {
                while ((tolower(odp) ~ /<frame[ \t]/)||(tolower(odp) ~ /href=/)) {
                        if (tolower(odp) ~ /<frame[ \t]/) {
@@ -89,6 +91,10 @@ function get_links(url,      errno,link,oneline,retval,odp,tmpfile) {
                                match(tolower(ramka),/src="[^"]+"/)
                                newurl=substr(ramka,RSTART+5,RLENGTH-6)
                                if (DEBUG) print "Ramka: " newurl
+                               if (newurl !~ /\//) {
+                                       newurl=(urldir newurl)
+                                       if (DEBUG) print "Ramka->: " newurl
+                               }
                                retval=(retval " " get_links(newurl))
                        } else if (tolower(odp) ~ /href=[ \t]*"[^"]+"/) {
                                sub(/[hH][rR][eE][fF]=[ \t]+/,"href=",odp)
This page took 0.070076 seconds and 4 git commands to generate.