/    Sign up×
Community /Pin to ProfileBookmark

What could throw this into the url?

For some reason, in my url “/page.php?category%5B%5D=1&do=list
its inserted that random %5B%5D, what could cause that? when I trim it down to category=1&do=list I get errors
these are the lines that the error is meant to affect.

[code=php]
function fetch_categories($multiple = true, $unique = null) {
global $vbulletin, $itoptions, $permissions, $vbphrase;

$_REQUEST[‘category’];

if ($options[‘enablecategories’]) {
$catlist = $vbulletin->db->query_read(‘
SELECT * FROM ‘ . TABLE_PREFIX . ‘categories
‘ . ($permissions[‘canviewhiddencategories’] ? ” : ‘WHERE public = 1’) . ‘
ORDER BY displayorder ASC
‘);
$selected[‘category’] = is_array($selected) ? $selected : array();
while ($category = $vbulletin->db->fetch_array($catlist)) {
$categories .= htmlspecialchars_uni($category[‘title’]);
}
$vbulletin->db->free_result($catlist);
}

if (!empty($categories)) {
$categories = ‘<select class=”bginput” name=”category[]” id=”categories’ . ($unique === null ? ” : $unique) . ‘”‘ . ($multiple ? ‘ multiple=”multiple”‘ : ”) . ‘ size=”‘ . ($multiple ? 4 : 1) . ‘” onchange=”manageCatList();”>
}

return $categories;
}[/code]

This is working with vbulletin software (which shouldn’t really be important)
Any Help given would be appreciated.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMaySep 20.2007 — [COLOR=#000000][COLOR=#dd0000]name="category[]"



5B=[

5D=]

[/COLOR]
[/COLOR]
×

Success!

Help @James32 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...