We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15563cc commit eca2462Copy full SHA for eca2462
ring-core/src/ring/middleware/session/cookie.clj
@@ -88,7 +88,7 @@
88
[key ^String string options]
89
(let [[data mac] (.split string "--")]
90
(when-let [data (try (codec/base64-decode data)
91
- (catch IllegalArgumentException _ nil))]
+ (catch IllegalArgumentException _ nil))]
92
(when (crypto/eq? mac (hmac key data))
93
(deserialize (decrypt key data) options)))))
94
ring-core/src/ring/util/response.clj
@@ -118,7 +118,7 @@
118
(defn- safely-find-file [^String path opts]
119
(if-let [^String root (:root opts)]
120
(when (or (safe-path? root path)
121
- (and (:allow-symlinks? opts) (not (directory-transversal? path))))
+ (and (:allow-symlinks? opts) (not (directory-transversal? path))))
122
(File. root path))
123
(File. path)))
124
0 commit comments