Skip to content

Commit

Permalink
server side validation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Jul 20, 2016
1 parent 81fa2c9 commit 5996fb5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/cms/helper/tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ public function createTagsFromField($tags)

foreach ($tags as $key => $tag)
{
// User is not allowed to create tags, so don't create.
if (strpos($tag, '#new#') !== false && JFactory::getUser()->authorise('core.create', 'com_tags'))
{
continue;
}

// Remove the #new# prefix that identifies new tags
$tagText = str_replace('#new#', '', $tag);

Expand Down

0 comments on commit 5996fb5

Please sign in to comment.