From cfe52baba2c8425ada24ca6ad597b7b7abfaff06 Mon Sep 17 00:00:00 2001
From: Larry Davis
Date: Tue, 1 Nov 2022 19:24:15 -0700
Subject: [PATCH 1/2] Fix hrefs that had single quotes (doesn't work as
intended in Netscape 1.12)
---
choose_edition.php | 54 +++++++++++++++++++++++-----------------------
index.php | 4 ++--
read.php | 2 +-
3 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/choose_edition.php b/choose_edition.php
index fee5fa7..777b999 100644
--- a/choose_edition.php
+++ b/choose_edition.php
@@ -20,34 +20,34 @@
Basic HTML Google News for vintage computers. Built by Action Retro on YouTube. Tested on Netscape 1.1 through 4 on a Mac SE/30.
CHOOSE YOUR EDITION:
- United States
- Japan
- United Kingdom
+ United States
+ Japan
+ United Kingdom
Spain (RIP)
- Canada
- Deutschland
- Italia
- France
- Australia
- Taiwan
- Nederland
- Brasil
- Turkey
- Belgium
- Greece
- India
- Mexico
- Denmark
- Argentina
- Switzerland
- Chile
- Austria
- Korea
- Ireland
- Colombia
- Poland
- Portugal
- Pakistan
+ Canada
+ Deutschland
+ Italia
+ France
+ Australia
+ Taiwan
+ Nederland
+ Brasil
+ Turkey
+ Belgium
+ Greece
+ India
+ Mexico
+ Denmark
+ Argentina
+ Switzerland
+ Chile
+ Austria
+ Korea
+ Ireland
+ Colombia
+ Poland
+ Portugal
+ Pakistan
< Back to 68k.news front page
Powered by Mozilla Readability (Andres Rey PHP Port) and SimplePie
diff --git a/index.php b/index.php
index c5aa35e..67d3fec 100644
--- a/index.php
+++ b/index.php
@@ -36,8 +36,8 @@
$result_snippet = explode('">', $result_snippet)[1];
$result_snippet = explode('', $result_snippet)[0];
- $final_result_html .= "
" . $result_title[0] . "
"
- . $result_display_url . "
" . $result_snippet . "
";
+ $final_result_html .= '
' . $result_title[0] . '
'
+ . $result_display_url . '
' . $result_snippet . '
';
}
}
}
diff --git a/read.php b/read.php
index 922177c..6af2fe6 100644
--- a/read.php
+++ b/read.php
@@ -87,7 +87,7 @@ function clean_str($str) {
//we can only do png and jpg
if (strpos($image_url, ".jpg") || strpos($image_url, ".jpeg") || strpos($image_url, ".png") === true) {
$img_num++;
- $imgline_html .= " [$img_num] ";
+ $imgline_html .= ' [' . $img_num . '] ';
}
endforeach;
if($img_num>0) {
From 98792aaccb9e82ff242ab13ae7ec50e5ed63ca18 Mon Sep 17 00:00:00 2001
From: Larry Davis
Date: Tue, 1 Nov 2022 19:27:39 -0700
Subject: [PATCH 2/2] Fix a few more instances of single quoted attributes
---
php/library/SimplePie/Enclosure.php | 8 ++++----
read.php | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/php/library/SimplePie/Enclosure.php b/php/library/SimplePie/Enclosure.php
index 15060e1..cfa9b97 100644
--- a/php/library/SimplePie/Enclosure.php
+++ b/php/library/SimplePie/Enclosure.php
@@ -1129,7 +1129,7 @@ public function embed($options = '', $native = false)
}
else
{
- $embed .= "";
+ $embed .= '";
}
}
@@ -1144,7 +1144,7 @@ public function embed($options = '', $native = false)
}
else
{
- $embed .= "";
+ $embed .= '";
}
}
@@ -1166,7 +1166,7 @@ public function embed($options = '', $native = false)
}
else
{
- $embed .= "";
+ $embed .= '";
}
}
@@ -1180,7 +1180,7 @@ public function embed($options = '', $native = false)
}
else
{
- $embed .= "";
+ $embed .= '";
}
}
diff --git a/read.php b/read.php
index 6af2fe6..3044321 100644
--- a/read.php
+++ b/read.php
@@ -94,7 +94,7 @@ function clean_str($str) {
echo $imgline_html ;
}
?>
- " . $error_text . ""; } ?>
+ ' . $error_text . ''; } ?>