// If there's an action option
if (isset($_REQUEST['option'])) {
- $option = trim($_REQUEST['option']);
+ $option = trim(filter_var($_REQUEST['option'],FILTER_SANITIZE_STRING));
}
$socialData = $this->editEntry($memberID);
// Also update all member info records with any possible name change
$sql = "
UPDATE ".GLM_MEMBERS_SOCIAL_PLUGIN_DB_PREFIX."socialURL
- SET facebook_url = www.testval.com
+ SET facebook_url = 'www.testval.com'
WHERE member_id = 1
;";
// $sql = "
$addOnTabs = array_merge($addOnTabs, $newTabs);
return $addOnTabs;
}
-);
\ No newline at end of file
+);
<p>{$displayData}</p>
<a href="{$thisURL}?page={$thisPage}&glm_action=more">Click me to see more!</a>
<form action="{$thisURL}?page={$thisPage}" method="post" enctype="multipart/form-data">
- <input type="submit" class="button glm-button submit" value="{if $memberInfoID && $memberInfo}Update member information{else}Add new member information{/if}">
+ <input type="submit" class="button glm-button submit" value="submit">
+ <input type="hidden" name="option" value="submit">
<div class="button glm-button right">Update</div>
<table class="glm-admin-table">
{foreach from=$socialArray key=k item=socialItem}