[PATCH] Use https for all links to /keys and /verify

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---

Ricky Zhou wrote:
> I guess an absolute URL can't be avoided if we want https, so something
> like this might work:
>
> <p class="note">${Markup(_('After downloading an ISO, &lt;a href="https://fedoraproject.org/%s/%s/verify"&gt;verify&lt;/a&gt; it.') % (path, lang))}</p>
>
> At some point, we can probably wrap making links like this in a function
> letting you choose between https/http and absolute vs. relative.

I stripped off the / before %s, as in my testing path always expanded
to include the leading slash (and a URL with a unnessecary // in it
just looks ugly).  If it's not a safe to assume that path always has a
leading /, I can add it back or see about using some python to strip
it when needed.

 fedoraproject.org/data/content/get-fedora-all.html |    2 +-
 fedoraproject.org/data/content/get-fedora-kde.html |    4 ++--
 fedoraproject.org/data/content/get-fedora-ppc.html |    2 +-
 fedoraproject.org/data/content/get-fedora.html     |    4 ++--
 fedoraproject.org/data/content/get-prerelease.html |    2 +-
 fedoraproject.org/data/content/verify.html         |    2 +-
 6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/fedoraproject.org/data/content/get-fedora-all.html b/fedoraproject.org/data/content/get-fedora-all.html
index 6097ebf..14b407e 100644
--- a/fedoraproject.org/data/content/get-fedora-all.html
+++ b/fedoraproject.org/data/content/get-fedora-all.html
@@ -13,7 +13,7 @@
         <a href="${path}/${lang}/get-fedora">${Markup(_('&amp;#8592; Back to the main "Get Fedora" page'))}</a>
     </div>
     <h2>${Markup(_('Fedora, For You.'))}</h2>
-    <p class="note">${Markup(_('After downloading an ISO, &lt;a href="%s/%s/verify"&gt;verify&lt;/a&gt; it.') % (path, lang))}</p>
+    <p class="note">${Markup(_('After downloading an ISO, &lt;a href="https://fedoraproject.org%s/%s/verify"&gt;verify&lt;/a&gt; it.') % (path, lang))}</p>
     <h3>${Markup(_('Install Media'))}</h3>
     <ul class="downloadbox installdvd">
         <li>
diff --git a/fedoraproject.org/data/content/get-fedora-kde.html b/fedoraproject.org/data/content/get-fedora-kde.html
index f863603..53cc3d9 100644
--- a/fedoraproject.org/data/content/get-fedora-kde.html
+++ b/fedoraproject.org/data/content/get-fedora-kde.html
@@ -27,7 +27,7 @@
                     <li><a href="http://docs.fedoraproject.org/install-guide/f11/";>${Markup(_('Fedora 11 Installation Guide'))}</a></li>
                     <li><a href="http://docs.fedoraproject.org/release-notes/f11/";>${Markup(_('Fedora 11 Release Notes'))}</a></li>
                     <li><a href="${path}/${lang}/get-help">${Markup(_('Help &amp;amp; Support'))}</a></li>
-                    <li><a href="${path}/${lang}/verify">${Markup(_('Verify your download'))}</a></li>
+                    <li><a href="https://fedoraproject.org${path}/${lang}/verify";>${Markup(_('Verify your download'))}</a></li>
                 </ul>
             </div>
             <p>
@@ -47,7 +47,7 @@
                     <li>${Markup(_('&lt;a href="http://docs.fedoraproject.org/install-guide/f11/en-US/html/ch-upgrade-x86.html"&gt;Fedora 11 Upgrade Guide&lt;/a&gt;'))}</li>
                     <li><a href="http://docs.fedoraproject.org/release-notes/f11/";>${Markup(_('Fedora 11 Release Notes'))}</a></li>
                     <li><a href="${path}/${lang}/get-help">${Markup(_('Help &amp;amp; Support'))}</a></li>
-                    <li><a href="${path}/${lang}/verify">${Markup(_('Verify your download'))}</a></li>
+                    <li><a href="https://fedoraproject.org${path}/${lang}/verify";>${Markup(_('Verify your download'))}</a></li>
                 </ul>
             </div>
             <p>
diff --git a/fedoraproject.org/data/content/get-fedora-ppc.html b/fedoraproject.org/data/content/get-fedora-ppc.html
index 86ba655..6e09632 100644
--- a/fedoraproject.org/data/content/get-fedora-ppc.html
+++ b/fedoraproject.org/data/content/get-fedora-ppc.html
@@ -26,7 +26,7 @@
                     <li>${Markup(_('&lt;a href="http://docs.fedoraproject.org/install-guide/f11/"&gt;Fedora 11 Install Guide&lt;/a&gt;'))}</li>
                     <li><a href="http://docs.fedoraproject.org/release-notes/f11/";>${Markup(_('Fedora 11 Release Notes'))}</a></li>
                     <li><a href="${path}/${lang}/get-help">${Markup(_('Help &amp;amp; Support'))}</a></li>
-                    <li><a href="${path}/${lang}/verify">${Markup(_('Verify your download'))}</a></li>
+                    <li><a href="https://fedoraproject.org${path}/${lang}/verify";>${Markup(_('Verify your download'))}</a></li>
                 </ul>
             </div>
             <p>
diff --git a/fedoraproject.org/data/content/get-fedora.html b/fedoraproject.org/data/content/get-fedora.html
index 3ac0dee..0360167 100644
--- a/fedoraproject.org/data/content/get-fedora.html
+++ b/fedoraproject.org/data/content/get-fedora.html
@@ -23,7 +23,7 @@
                     <li><a href="http://docs.fedoraproject.org/install-guide/f11/";>${Markup(_('Fedora 11 Installation Guide'))}</a></li>
                     <li><a href="http://docs.fedoraproject.org/release-notes/f11/";>${Markup(_('Fedora 11 Release Notes'))}</a></li>
                     <li><a href="${path}/${lang}/get-help">${Markup(_('Help &amp;amp; Support'))}</a></li>
-                    <li><a href="${path}/${lang}/verify">${Markup(_('Verify your download'))}</a></li>
+                    <li><a href="https://fedoraproject.org${path}/${lang}/verify";>${Markup(_('Verify your download'))}</a></li>
                 </ul>
             </div>
             <p>
@@ -43,7 +43,7 @@
                     <li>${Markup(_('&lt;a href="http://docs.fedoraproject.org/install-guide/f11/en-US/html/ch-upgrade-x86.html"&gt;Fedora 11 Upgrade Guide&lt;/a&gt;'))}</li>
                     <li><a href="http://docs.fedoraproject.org/release-notes/f11/";>${Markup(_('Fedora 11 Release Notes'))}</a></li>
                     <li><a href="${path}/${lang}/get-help">${Markup(_('Help &amp;amp; Support'))}</a></li>
-                    <li><a href="${path}/${lang}/verify">${Markup(_('Verify your download'))}</a></li>
+                    <li><a href="https://fedoraproject.org${path}/${lang}/verify";>${Markup(_('Verify your download'))}</a></li>
                 </ul>
             </div>
             <p>
diff --git a/fedoraproject.org/data/content/get-prerelease.html b/fedoraproject.org/data/content/get-prerelease.html
index f7729a5..de8cd5a 100644
--- a/fedoraproject.org/data/content/get-prerelease.html
+++ b/fedoraproject.org/data/content/get-prerelease.html
@@ -11,7 +11,7 @@
   <body class="get">
     <h2>${Markup(_('Fedora, For You.'))}</h2>
     <p class="warning">${Markup(_('This is pre-release software. The Fedora Project makes no guarantees as to its suitability or usefulness. All issues should be reported via the &lt;a href="https://bugzilla.redhat.com/"&gt;Red Hat Bugzilla&lt;/a&gt;.  Read the &lt;a href="%(relnotes_url)s"&gt;Release Notes&lt;/a&gt; for more information.') % {'relnotes_url': _('http://docs.fedoraproject.org/release-notes/f12/en-US/html/')})}</p>
-    <p class="note">${Markup(_('After downloading an ISO, &lt;a href="%s/%s/verify"&gt;verify&lt;/a&gt; it.') % (path, lang))}</p>
+    <p class="note">${Markup(_('After downloading an ISO, &lt;a href="https://fedoraproject.org%s/%s/verify"&gt;verify&lt;/a&gt; it.') % (path, lang))}</p>
     <h3>${Markup(_('Install Media'))}</h3>
     <ul class="downloadbox installdvd">
       <li>
diff --git a/fedoraproject.org/data/content/verify.html b/fedoraproject.org/data/content/verify.html
index 2576dd8..ee41527 100644
--- a/fedoraproject.org/data/content/verify.html
+++ b/fedoraproject.org/data/content/verify.html
@@ -32,7 +32,7 @@
     </p>
     <pre class="command">$ curl https://fedoraproject.org/static/fedora.gpg | gpg --import</pre>
     <p>
-    ${Markup(_('You can verify the details of the GPG key(s) &lt;a href="%s/%s/keys"&gt;here&lt;/a&gt;.') % (path, lang))}
+    ${Markup(_('You can verify the details of the GPG key(s) &lt;a href="https://fedoraproject.org%s/%s/keys"&gt;here&lt;/a&gt;.') % (path, lang))}
     </p>
     <p>
     ${Markup(_('Now, verify that the CHECKSUM file is valid:'))}
-- 
1.6.5.1

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I always keep a supply of stimulant handy in case I see a snake -
which I also keep handy.
    -- W. C. Fields

-- 
Fedora-websites-list mailing list
Fedora-websites-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-websites-list

[Index of Archives]     [Fedora Users]     [Linux ARM]     [ARM Kernel]     [Older Fedora Users]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux