diff --git a/CHANGELOG.md b/CHANGELOG.md
index f727a71bb..a2c95cd74 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,4 @@
+- Added `Original filename` variable to Sauce panel.
- Added a `Reset Settings` button in the settings.
### 3.15.2 - *2014-01-22*
diff --git a/html/General/Settings-section-Sauce.html b/html/General/Settings-section-Sauce.html
index b31017946..c630955c4 100644
--- a/html/General/Settings-section-Sauce.html
+++ b/html/General/Settings-section-Sauce.html
@@ -5,6 +5,7 @@
%TURL: Thumbnail URL.
%URL: Full image URL.
%MD5: MD5 hash.
+ %name: Original file name.
%board: Current board.
diff --git a/src/Images/Sauce.coffee b/src/Images/Sauce.coffee
index b7ce89779..8e7f06e06 100644
--- a/src/Images/Sauce.coffee
+++ b/src/Images/Sauce.coffee
@@ -15,7 +15,7 @@ Sauce =
name: 'Sauce'
cb: @node
createSauceLink: (link) ->
- link = link.replace /%(T?URL|MD5|board)/g, (parameter) ->
+ link = link.replace /%(T?URL|MD5|board|name)/g, (parameter) ->
switch parameter
when '%TURL'
"' + encodeURIComponent(post.file.thumbURL) + '"
@@ -25,6 +25,8 @@ Sauce =
"' + encodeURIComponent(post.file.MD5) + '"
when '%board'
"' + encodeURIComponent(post.board) + '"
+ when '%name'
+ "' + encodeURIComponent(post.file.name) + '"
else
parameter
text = if m = link.match(/;text:(.+)$/) then m[1] else link.match(/(\w+)\.\w+\//)[1]