Yicong-Huang commented on code in PR #53267:
URL: https://github.com/apache/spark/pull/53267#discussion_r2590808528


##########
core/src/main/scala/org/apache/spark/internal/config/UI.scala:
##########
@@ -58,6 +58,8 @@ private[spark] object UI {
   val UI_ALLOW_FRAMING_FROM = ConfigBuilder("spark.ui.allowFramingFrom")
     .version("1.6.0")
     .stringConf
+    .checkValue(s => !s.contains("\n") && !s.contains("\r"),
+      "Newlines are not allowed due to security concerns")

Review Comment:
   shall we not mention the reason for security?



-- 
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]

Reply via email to