Add URL encoding to CSS and .js links in <HEAD>.
Enocde & as & to make validator happy. Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
@@ -997,7 +997,7 @@ function serendipity_smarty_init($vars = array()) {
|
||||
|
||||
// When templates are switched, append a specific version string to make sure the browser does not cache the CSS
|
||||
if (strstr($serendipity['smarty_vars']['head_link_stylesheet'], '?')) {
|
||||
$serendipity['smarty_vars']['head_link_stylesheet'] .= '&v=' . $serendipity['last_template_change'];
|
||||
$serendipity['smarty_vars']['head_link_stylesheet'] .= '&v=' . $serendipity['last_template_change'];
|
||||
} else {
|
||||
$serendipity['smarty_vars']['head_link_stylesheet'] .= '?v=' . $serendipity['last_template_change'];
|
||||
}
|
||||
@@ -1011,7 +1011,7 @@ function serendipity_smarty_init($vars = array()) {
|
||||
}
|
||||
|
||||
if (strstr($serendipity['smarty_vars']['head_link_script'], '?')) {
|
||||
$serendipity['smarty_vars']['head_link_script'] .= '&v=' . $serendipity['last_template_change'];
|
||||
$serendipity['smarty_vars']['head_link_script'] .= '&v=' . $serendipity['last_template_change'];
|
||||
} else {
|
||||
$serendipity['smarty_vars']['head_link_script'] .= '?v=' . $serendipity['last_template_change'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user