summaryrefslogtreecommitdiff
path: root/www/webcopy/files/patch-ab
blob: 81a2175b40d0d2a24599cc358640b2be51d1eec2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
*** webcopy.src.old	Sat Jun  8 20:42:14 1996
--- webcopy.src	Sun Sep 15 20:14:20 1996
***************
*** 1,4 ****
! #!%PERL% -- # -*- perl -*-
  eval 'exec %PERL% -S $0 "$*"'
      if undef;
  #
--- 1,4 ----
! #!%PERL% --
  eval 'exec %PERL% -S $0 "$*"'
      if undef;
  #
***************
*** 275,280 ****
--- 275,281 ----
  		    &check_tag("OVERLAY", "SRC",        $image) ||
  		    &check_tag("BODY",    "BACKGROUND", $image) ||
  		    &check_tag("TABLE",   "BACKGROUND", $image) ||
+ 		    &check_tag("EMBED",   "SRC",        $image) ||
  		    &check_tag("BGSOUND", "SRC",        $image) ||
  		    &check_tag("FRAME",   "SRC",        $link)  ||
  		    &check_tag("AREA",    "HREF",       $link)  ||
***************
*** 316,323 ****
  	($quote)=$value=~/^([\"\'])/;
  	if ($quote) {
  	    if ($value!~/.$quote$/) {
! 		($_,$etc)=$etc=~/^([^$quote]*)$quote?(.*)$/;
! 		$value.=$_.$quote;
  	    }
  	    $value=~s/$quote\s*(.*)\s*$quote$/$1/;
  	    $value=~s/\s*$//;
--- 317,324 ----
  	($quote)=$value=~/^([\"\'])/;
  	if ($quote) {
  	    if ($value!~/.$quote$/) {
! 		($_,$etc)=$value=~/^($quote[^$quote]*)$quote?(.*)$/;
! 		$value=$_.$quote;
  	    }
  	    $value=~s/$quote\s*(.*)\s*$quote$/$1/;
  	    $value=~s/\s*$//;
***************
*** 460,466 ****
      local($url,$file)=@_;
      local($status,$code,$info,$line,$length,$html,$redirect,$update,$data,
  	  $bytes,$step,$slice);
!     if ($useremote || $userpass) {
  	$update="Pragma: no-cache${rn}";
      } else {
  	(($update=(($_=&get_date($file))) &&
--- 461,467 ----
      local($url,$file)=@_;
      local($status,$code,$info,$line,$length,$html,$redirect,$update,$data,
  	  $bytes,$step,$slice);
!     if ($useremote) {
  	$update="Pragma: no-cache${rn}";
      } else {
  	(($update=(($_=&get_date($file))) &&