summaryrefslogtreecommitdiff
path: root/src/c
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2019-05-31 09:58:37 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2019-05-31 09:58:37 -0400
commit94ea84354715c4a2bb30cd4aaeaaba506358d1d6 (patch)
tree2df2ab07926da9b608ad38e8a0b9f46c7c8b8c6f /src/c
parenta19e53017364ceddbba557fb363ca26b273f89da (diff)
Filecache support for MySQL
Diffstat (limited to 'src/c')
-rw-r--r--src/c/urweb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 4d9e8630..8a7c439a 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -5327,9 +5327,8 @@ uw_Basis_blob uw_Basis_check_filecache(uw_context ctx, uw_Basis_string hash) {
// Hashes come formatted for printing by Postgres, which means they start with
// two extra characters. Let's remove them.
- if (!hash[0] || !hash[1])
- uw_error(ctx, FATAL, "Hash to check against file cache came in not in Postgres format: %s", hash);
- hash += 2;
+ if (hash[0] == '\\' && hash[1] == 'x')
+ hash += 2;
if (!dir)
uw_error(ctx, FATAL, "Checking file cache when no directory is set");