Skip to content

Commit

Permalink
Fixed bug where web hook validation got tripped up on the new header …
Browse files Browse the repository at this point in the history
…system (thanks @mikeTWC1984)
  • Loading branch information
jhuckaby committed Nov 8, 2020
1 parent 62ed487 commit 5c0199b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ module.exports = Class.create({
timezone: [RE_TYPE_STRING, /.*/],
title: [RE_TYPE_STRING, /\S/],
username: [RE_TYPE_STRING, /^[\w\-\.]+$/],
web_hook: [RE_TYPE_STRING, /(^$|https?\:\/\/\S+$)/i]
web_hook: [RE_TYPE_STRING, /(^$|https?\:\/\/\S+)/i]
};
if (!this.validateOptionalParams(event, rules, callback)) return false;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Cronicle",
"version": "0.8.51",
"version": "0.8.52",
"description": "A simple, distributed task scheduler and runner with a web based UI.",
"author": "Joseph Huckaby <[email protected]>",
"homepage": "https://github.com/jhuckaby/Cronicle",
Expand Down

0 comments on commit 5c0199b

Please sign in to comment.