From 1b9cfeb35a79a6d17f4d053b4f317f8686f2c47a Mon Sep 17 00:00:00 2001 From: Xiaodong Qi Date: Thu, 8 Dec 2016 15:27:47 -0700 Subject: [PATCH] Use https by default in templates. --- bibtexbrowser.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index e858cad..ecf5f8f 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -1901,7 +1901,7 @@ class BibEntry { // Fields that should be hyperlinks // the order matters - $hyperlinks = array('url' => '%O', 'file' => '%O', 'pdf' => '%O', 'doi' => 'http://dx.doi.org/%O', 'gsid' => 'http://scholar.google.com/scholar?cites=%O'); + $hyperlinks = array('url' => '%O', 'file' => '%O', 'pdf' => '%O', 'doi' => 'https://dx.doi.org/%O', 'gsid' => 'https://scholar.google.com/scholar?cites=%O'); $vals = array(); foreach ($hyperlinks as $field => $url) { @@ -2266,7 +2266,7 @@ function DefaultBibliographyStyle(&$bibentry) { $authors = array(); foreach ($bibentry->getFormattedAuthorsArray() as $a) { - $authors[]=''; + $authors[]=''; } $coreInfo .= $bibentry->implodeAuthors($authors); @@ -2340,7 +2340,7 @@ function DefaultBibliographyStyle(&$bibentry) { // add the Coin URL $result .= $bibentry->toCoins(); - return ''.$result.''; + return ''.$result.''; } @@ -4075,10 +4075,10 @@ function HTMLTemplate(&$content) { // when we load a page with AJAX // the HTTP header is taken into account, not the header('Content-type: text/html; charset='.OUTPUT_ENCODING); -echo ''."\n"; +echo ''."\n"; ?> - + @@ -4340,7 +4340,7 @@ class RSSDisplay { // ?> - + <?php echo $this->title;?> http:// @@ -4706,8 +4706,8 @@ class Dispatcher { function frameset() { ?> - - + +