Skip to content

Commit

Permalink
fix: quote crossorigin value
Browse files Browse the repository at this point in the history
  • Loading branch information
mohe2015 authored and ctron committed Jan 13, 2025
1 parent a5aa1ba commit dfab745
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 @@ -155,11 +155,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}"{nonce} href="{base}{name}" crossorigin={cross_origin} integrity="{integrity}"{options}>"#,
r#"<link rel="{type}"{nonce} href="{base}{name}" crossorigin="{cross_origin}" integrity="{integrity}"{options}>"#,
)
} else {
format!(
r#"<link rel="{type}"{nonce} href="{base}{name}" crossorigin={cross_origin}{options}>"#,
r#"<link rel="{type}"{nonce} href="{base}{name}" crossorigin="{cross_origin}"{options}>"#,
)
};
location
Expand Down

0 comments on commit dfab745

Please sign in to comment.