Skip to content

Commit

Permalink
Only use tags_admin_commands if the input actually begins with an adm…
Browse files Browse the repository at this point in the history
…in command character
  • Loading branch information
scc committed Feb 13, 2008
1 parent 6deb4dd commit 5b0a39b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/Ajax/htdocs/images/common.js
Expand Up @@ -379,17 +379,17 @@ function createTag(tag, id, type) {
var params = [];
params['id'] = id;
params['type'] = type;
if ( fh_is_admin ) {
if ( fh_is_admin && ("_#)^*".indexOf(tag[0]) != -1) ) {
params['op'] = 'tags_admin_commands';
params['reskey'] = $('admin_commands-reskey-' + id).value;
params['command'] = tag;
if (tag == "hold") {
firehose_collapse_entry(id);
}
} else {
params['op'] = 'tags_create_tag';
params['reskey'] = reskey_static;
params['name'] = tag;
if ( fh_is_admin && (tag == "hold") ) {
firehose_collapse_entry(id);
}
}
ajax_update(params, '');
}
Expand Down

0 comments on commit 5b0a39b

Please sign in to comment.