From 2647aadad8f3bddaa6c1f72a1a5e39bbeb2fcd23 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 3 Oct 2012 10:08:45 -0700 Subject: [PATCH] Re-enable JS for the feedback form --- DNSCrypt-Preference-Pane/DNSCrypt/DNSCrypt.m | 2 +- .../DNSCrypt/en.lproj/DNSCrypt.xib | 32 ++++++------------- 2 files changed, 10 insertions(+), 24 deletions(-) diff --git a/DNSCrypt-Preference-Pane/DNSCrypt/DNSCrypt.m b/DNSCrypt-Preference-Pane/DNSCrypt/DNSCrypt.m index 8691340..20bf24c 100644 --- a/DNSCrypt-Preference-Pane/DNSCrypt/DNSCrypt.m +++ b/DNSCrypt-Preference-Pane/DNSCrypt/DNSCrypt.m @@ -309,7 +309,7 @@ DNSConfigurationState currentState = kDNS_CONFIGURATION_UNKNOWN; res = [self fromCommand: @"/bin/ksh" withArguments: [NSArray arrayWithObjects: @"-c", @"/usr/local/sbin/dnscrypt-proxy --version | head -n 1", nil]]; NSCharacterSet *charset = [NSCharacterSet characterSetWithCharactersInString: @"\r\n<>'"]; res = [[res componentsSeparatedByCharactersInSet: charset] componentsJoinedByString: @" "]; - NSString *script = [NSString stringWithFormat: @"document.querySelector('textarea[name=feedback]').value='\\n\\n\\n--\\nOpenDNS user interface for OSX " kDNSCRYPT_PACKAGE_VERSION "\\n%@'", res];; + NSString *script = [NSString stringWithFormat: @"document.querySelector('textarea[name=feedback]').value='\\n\\n\\n--\\nOpenDNS user interface for OSX " kDNSCRYPT_PACKAGE_VERSION "\\n%@'", res]; [sender stringByEvaluatingJavaScriptFromString: script]; } diff --git a/DNSCrypt-Preference-Pane/DNSCrypt/en.lproj/DNSCrypt.xib b/DNSCrypt-Preference-Pane/DNSCrypt/en.lproj/DNSCrypt.xib index 4ffb142..f86d96b 100644 --- a/DNSCrypt-Preference-Pane/DNSCrypt/en.lproj/DNSCrypt.xib +++ b/DNSCrypt-Preference-Pane/DNSCrypt/en.lproj/DNSCrypt.xib @@ -65,13 +65,13 @@ {{13, 10}, {563, 359}} - + _NS:461 1 - + 256 @@ -79,7 +79,6 @@ 268 {{15, 238}, {204, 22}} - _NS:239 YES @@ -115,7 +114,6 @@ 268 {{15, 212}, {245, 24}} - _NS:239 YES @@ -142,7 +140,6 @@ 268 {{15, 157}, {244, 22}} - _NS:239 YES @@ -173,7 +170,6 @@ 268 {{15, 133}, {204, 22}} - _NS:239 YES @@ -200,7 +196,6 @@ 268 {{14, 96}, {173, 19}} - _NS:3936 YES @@ -241,7 +236,6 @@ 268 {{54, 284}, {72, 19}} - _NS:3936 YES @@ -266,7 +260,6 @@ 268 {{14, -3}, {240, 83}} - _NS:3596 YES @@ -296,7 +289,6 @@ 268 {{115, 283}, {125, 19}} - _NS:3596 YES @@ -334,7 +326,6 @@ {{302, 222}, {224, 88}} - YES @@ -365,7 +356,6 @@ {{17, 277}, {32.395949255088134, 32.395949255088134}} - YES @@ -388,7 +378,6 @@ 12 {{269.5, 2}, {4, 300}} - _NS:1557 {0, 0} @@ -425,8 +414,6 @@ 268 {{323, 190}, {183, 32}} - - _NS:2419 YES @@ -472,7 +459,6 @@ {{302, 2}, {224, 192}} - _NS:51 @@ -487,7 +473,7 @@ - + @@ -500,7 +486,6 @@ 12 {{17, 193}, {240, 5}} - _NS:2411 {0, 0} @@ -522,8 +507,6 @@ {{10, 33}, {543, 313}} - - _NS:463 @@ -1089,7 +1072,7 @@ aW91cy5leGFtcGxlLm5ldA 5 - + 256 @@ -1114,6 +1097,7 @@ aW91cy5leGFtcGxlLm5ldA {{17, 17}, {509, 293}} + _NS:51 @@ -1124,6 +1108,8 @@ aW91cy5leGFtcGxlLm5ldA {{10, 33}, {543, 313}} + + _NS:610 @@ -1132,13 +1118,13 @@ aW91cy5leGFtcGxlLm5ldA - + 0 YES YES - +