From 0b6389fe7f43ad9781b09be672ea1722933fba0c Mon Sep 17 00:00:00 2001 From: sand <sand@autistici.org> Date: Sun, 26 Jul 2015 15:30:27 +0200 Subject: [PATCH] also rewrite <a> tags --- noblogs-wp-ssl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noblogs-wp-ssl.php b/noblogs-wp-ssl.php index fa24c16..ffca25c 100644 --- a/noblogs-wp-ssl.php +++ b/noblogs-wp-ssl.php @@ -19,7 +19,7 @@ if ( !function_exists('add_action') ) { function rewrite_links($buffer) { // replace href or src attributes within script, link, base, and img tags with just "//" for protocol - $re = "/(<(?:script|link|base|img|form)(?:[^>]*)(?:href|src|action)=[\"'])http:\\/\\/([^.]+\.noblogs\.org)/i"; + $re = "/(<(?:script|link|base|img|form|a)(?:[^>]*)(?:href|src|action)=[\"'])http:\\/\\/([^.]+\.noblogs\.org)/i"; $subst = "$1https://$2"; return preg_replace($re, $subst, $buffer); } -- GitLab