Skip to content
Browse files

Reverting previous change for query string parsing

Reverts a previous change which was made to accommodate custom
query string args in applets. It unfortunately conflicts with
the way mod-rewrite is done on some systems.
  • Loading branch information...
1 parent d99f8a5 commit 021ee1b7f66615c877e10aebff8538a184ad5278 @Gipetto Gipetto committed Jun 13, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 OpenVBX/libraries/OpenVBX.php
View
5 OpenVBX/libraries/OpenVBX.php
@@ -445,7 +445,8 @@ public static function validateRequest($url = false, $post_vars = false)
// without rewrite enabled we need to ensure that the query string
// is properly appended to the url when being reconstructed
- if (!empty($_SERVER['QUERY_STRING']) && strpos($url, $_SERVER['QUERY_STRING']) === false)
+ if ($ci->vbx_settings->get('rewrite_enabled', VBX_PARENT_TENANT) < 1 &&
+ !empty($_SERVER['QUERY_STRING']) && strpos($url, $_SERVER['QUERY_STRING']) === false)
{
$url .= '?'.$_SERVER['QUERY_STRING'];
}
@@ -455,7 +456,7 @@ public static function validateRequest($url = false, $post_vars = false)
// we weren't handed post-vars, use the default
$post_vars = $_POST;
}
-
+ error_log($url);
return self::$_twilioValidator->validate(self::getRequestSignature(), $url, $post_vars);
}

0 comments on commit 021ee1b

Please sign in to comment.
Something went wrong with that request. Please try again.