Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix typo when constructing secured multi options

s/label/nonce/
  • Loading branch information...
commit ee08fbd77219a6c688288c8b90ca22d5776434dc 1 parent 820a15d
@pbrant pbrant authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 web/webkit/src/main/scala/net/liftweb/http/SHtml.scala
View
5 web/webkit/src/main/scala/net/liftweb/http/SHtml.scala
@@ -2099,10 +2099,10 @@ trait SHtml {
SelectableOptionWithNonce(selectableOption.value, randomString(20), selectableOption.label, selectableOption.attrs: _*)
}
- val sm: Map[String, T] = Map(secure.map(v => (v.label, v.value)): _*)
+ val sm: Map[String, T] = Map(secure.map(v => (v.nonce, v.value)): _*)
val defaultNonce: Seq[String] = default.flatMap { defaultOption =>
- secure.find(_.value == defaultOption).map(_.label)
+ secure.find(_.value == defaultOption).map(_.nonce)
}
val nonces: List[SelectableOption[String]] = secure.map { selectableOptionWithNonce =>
@@ -2111,6 +2111,7 @@ trait SHtml {
def process(info: List[String]): Unit = onSubmit(info.flatMap(sm.get))
+
(nonces, defaultNonce, LFuncHolder(process))
}
Please sign in to comment.
Something went wrong with that request. Please try again.