Skip to content

Instantly share code, notes, and snippets.

View cluppi's full-sized avatar

Caio Vitor Luppi de Paula cluppi

View GitHub Profile
@cluppi
cluppi / after.sh
Created March 19, 2015 19:01
Turning SSL on for Homestead
#!/bin/sh
# Config for SSL.
echo "--- Making SSL Directory ---"
mkdir /etc/nginx/ssl
echo "--- Copying $i SSL crt and key ---"
openssl req -nodes -new -x509 -keyout /etc/nginx/ssl/server.key -out /etc/nginx/ssl/server.crt -subj "/C=US/ST=NY/L=NYC/O=Dis/CN=www.example.com"
echo "--- Turning SSL on in nginx.conf. ---"
@cluppi
cluppi / webform_encrypt_support_webform_4.x.patch
Created December 18, 2014 13:12
Webform Encrypt patch to support webform 4.x on top of patches applied
diff --git a/webform_encrypt.module b/webform_encrypt.module
index c74b862..16f8a8e 100644
--- a/webform_encrypt.module
+++ b/webform_encrypt.module
@@ -90,8 +90,16 @@ function webform_encrypt_webform_component_presave(&$component) {
function webform_encrypt_webform_submission_presave($node, &$submission) {
foreach ($submission->data as $cid => $entry) {
if (!empty($node->webform['components'][$cid]['extra']['encrypt'])) {
- foreach ($submission->data[$cid]['value'] as $delta => $value) {
- $submission->data[$cid]['value'][$delta] = encrypt($entry['value'][$delta], array('base64' => TRUE));
/* Global */
/* Global: reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,