holdenk opened a new pull request, #57197: URL: https://github.com/apache/spark/pull/57197
### What changes were proposed in this pull request? The log viewer pages assemble a query string from request parameters and embed it into an inline script literal. Encode that value for a JavaScript string context using the bundled commons-text StringEscapeUtils, matching the existing pattern in AllJobsPage, so the generated script stays well-formed regardless of the parameter contents. Backport to 4.0 of https://github.com/apache/spark/pull/57165 ### Why are the changes needed? Formatting can get funky with unescaped parameters. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? New test ### Was this patch authored or co-authored using generative AI tooling? Primarily Claude 4.8 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
