Skip to main content

substitute_cookies

Function substitute_cookies 

Source
pub fn substitute_cookies(template: &str, cookies: &CookieMap) -> String
Expand description

Replaces %KEY% placeholders in a template with values from the cookie map.

§Security

Uses single-pass scanning to prevent cascade expansion (second-order injection).