[Plugin: BulletProof Security] BPS and URL Params Plugin
-
Hello
I am using a slightly modified version of the URL Params plugin
It allows me to pass a value (dollar amount) from one form to another, located on different page.Exactly in the same fashion as this site
If you select $200 on the homepage, $200 will be pre-populated on the next form, different page.
After installing BPS, these values are no longer being passed. This seems to be the result of the BPS ‘locking down’ procedure that re-writes/modifies a few files for greater security.
Is there an exception line of code I can implement in the Custom Code area of BPS that will restore this functionality?
If so, could you please tell me what that code would be, and in which pane of the Custom Code section I should place it in?
Here is the modified URL Params code I am using:
/* Plugin Name: URL Params Plugin URI: http://asandia.com/wordpress-plugins/urlparams/ Description: Short Code to grab any URL Paramater Version: 0.4 Author: Jeremy B. Shapiro Author URI: http://www.asandia.com/ */ /* URL Params (WordPress Plugin) Copyright (C) 2011 Jeremy Shapiro Updated by Phil Jolly 2012 */ //tell wordpress to register the shortcode add_shortcode("urlparam", "urlparam"); function urlparam($atts) { $atts = shortcode_atts(array( 'param' => '', 'default' => '', 'dateformat' => '' ), $atts); $params = preg_split('/\,\s*/',$atts['param']); foreach($params as $param) { $pieces = explode('.', $param); $p1 = $pieces[0]; $p2 = $pieces[1]; if($_REQUEST[$p1][$p2]) { return $_REQUEST[$p1][$p2]; } else if($_REQUEST[$param]) { if(($atts['dateformat'] != '') && strtotime($_REQUEST[$param])) { return date($atts['dateformat'], strtotime($_REQUEST[$param])); } else { return $_REQUEST[$param]; } } } return $atts['default']; }Thanks for your time and have a great day.
The topic ‘[Plugin: BulletProof Security] BPS and URL Params Plugin’ is closed to new replies.