Code Duplication    Length = 3-3 lines in 3 locations

htdocs/editdesc.php 1 location

@@ 144-146 (lines=3) @@
141
                    $desc = trim($_POST['desc']);  // Ocprop
142
143
                    // fuer alte Versionen von OCProp
144
                    if (isset($_POST['submit']) && !isset($_POST['version2'])) {
145
                        $desc = iconv('ISO-8859-1', 'UTF-8', $desc);
146
                    }
147
148
                    $desc = processEditorInput($oldDescMode, $descMode, $desc, $representDesc);
149

htdocs/newcache.php 1 location

@@ 201-203 (lines=3) @@
198
        tpl_set_var('hints', htmlspecialchars($hints, ENT_COMPAT, 'UTF-8'));
199
200
        // fuer alte Versionen von OCProp
201
        if (isset($_POST['submit']) && !isset($_POST['version2'])) {
202
            $hints = iconv("ISO-8859-1", "UTF-8", $hints);
203
        }
204
205
        //tos
206
        $tos = isset($_POST['TOS']) ? 1 : 0; // Ocprop

htdocs/search.php 1 location

@@ 319-321 (lines=3) @@
316
        $options['searchtype'] = 'byname';
317
        $options['cachename'] = isset($_REQUEST['cachename']) ? stripslashes($_REQUEST['cachename']) : '';
318
319
        if (!isset($_REQUEST['utf8'])) {
320
            $options['cachename'] = iconv("ISO-8859-1", "UTF-8", $options['cachename']);
321
        }
322
    } elseif (isset($_REQUEST['searchbyowner'])) { // Ocprop
323
        $options['searchtype'] = 'byowner';
324