Skip to content

Commit

Permalink
fix: quote crossorigin value
Browse files Browse the repository at this point in the history
  • Loading branch information
mohe2015 committed Dec 27, 2024
1 parent d4d92c4 commit 5c31d69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pipelines/rust/sri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ impl SriResult {
for (SriKey { r#type, name }, SriEntry { digest, options }) in &self.integrities {
let preload = if let Some(integrity) = digest.to_integrity_value() {
format!(
r#"<link rel="{type}" href="{base}{name}" crossorigin={cross_origin} integrity="{integrity}"{options}>"#,
r#"<link rel="{type}" href="{base}{name}" crossorigin="{cross_origin}" integrity="{integrity}"{options}>"#,
)
} else {
format!(
r#"<link rel="{type}" href="{base}{name}" crossorigin={cross_origin}{options}>"#,
r#"<link rel="{type}" href="{base}{name}" crossorigin="{cross_origin}"{options}>"#,
)
};
location
Expand Down

0 comments on commit 5c31d69

Please sign in to comment.