comparison mod_pastebin/mod_pastebin.lua @ 13:135855b685d6

mod_pastebin: Set default of 500 chars for pastebin_threshold
author Matthew Wild <mwild1@gmail.com>
date Fri, 25 Sep 2009 22:22:58 +0100
parents 316e8437f233
children 4f18696f043a
comparison
equal deleted inserted replaced
12:316e8437f233 13:135855b685d6
2 local st = require "util.stanza"; 2 local st = require "util.stanza";
3 local httpserver = require "net.httpserver"; 3 local httpserver = require "net.httpserver";
4 local uuid_new = require "util.uuid".generate; 4 local uuid_new = require "util.uuid".generate;
5 local os_time = os.time; 5 local os_time = os.time;
6 6
7 local length_threshold = config.get("*", "core", "pastebin_threshold"); 7 local length_threshold = config.get("*", "core", "pastebin_threshold") or 500;
8 8
9 local base_url; 9 local base_url;
10 10
11 local pastes = {}; 11 local pastes = {};
12 12