Show
Ignore:
Timestamp:
08/06/06 13:23:04 (2 years ago)
Author:
mbonetti
Message:

Experimental: allow UTF-8 tagging

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/util.php

    r1516 r1525  
    974974// moved from ajax.php 
    975975function __exp__submitTag($id,$tags,$type = "'item'") { 
    976     $ftags = preg_replace(ALLOWED_TAGS_REGEXP,'', trim($tags)); 
     976    $ftags = utf8_encode( preg_replace(ALLOWED_TAGS_REGEXP,'', trim($tags))); 
    977977    $tarr = array_slice(explode(" ",$ftags),0,MAX_TAGS_PER_ITEM); 
    978978    $ftags = implode(" ",__priv__updateTags($id,$tarr,$type));