From 20fc22d4b81c403369bbdadaa7004b5cb6d5b9e9 Mon Sep 17 00:00:00 2001 From: Pieter de Bie Date: Fri, 10 Oct 2008 22:47:32 +0200 Subject: [PATCH] WebController: Fix log bug The log message wasn't escaped previously, which would mean that %@ code etc would be parsed, and fail. --- PBWebController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBWebController.m b/PBWebController.m index 9c810ec..6b8f50e 100644 --- a/PBWebController.m +++ b/PBWebController.m @@ -51,7 +51,7 @@ #pragma mark Functions to be used from JavaScript - (void) log: (NSString*) logMessage { - NSLog(logMessage); + NSLog(@"%@", logMessage); } @end