chiark
/
gitweb
/
~ian
/
nj-awaymsg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
wip
[nj-awaymsg.git]
/
AwayMsg.pm
diff --git
a/AwayMsg.pm
b/AwayMsg.pm
index 472850a81149ae3bcb0d5fd0e5b0ee4e07f8236c..3e95f713bc7763b8be455920704a17545b444b21 100644
(file)
--- a/
AwayMsg.pm
+++ b/
AwayMsg.pm
@@
-25,6
+25,11
@@
sub www_begin ($$) {
$r->header_out("Cache-Control: no-cache");
}
+sub hquote ($) {
+ my ($raw) = @_;
+ return pack "H*", $raw;
+}
+
sub db_connect () {
my $dbf;
foreach my $d (@INC) {