Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-5277

Extra utf decoding in external DB (patch included)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.8
    • 1.5.3
    • Authentication
    • None
    • All
    • MOODLE_15_STABLE
    • MOODLE_18_STABLE

      Extra utf decoding in external DB. It damage firstname etc.

      Maybe should we check encoding here?

      Index: auth/db/lib.php

      ===================================================================

      RCS file: /cvsroot/moodle/moodle/auth/db/lib.php,v

      retrieving revision 1.15.2.2

      diff -u -r1.15.2.2 lib.php

      — auth/db/lib.php 31 Aug 2005 05:59:31 -0000 1.15.2.2

      +++ auth/db/lib.php 21 Apr 2006 10:04:24 -0000

      @@ -76,7 +76,7 @@

      if ($rs = $authdb->Execute(SELECT .$pcfg[field_map_$field]. FROM $CFG->auth_dbtable

      WHERE $CFG->auth_dbfielduser = '$username')) {

      if ( $rs->RecordCount() == 1 )

      { - $result[$field] = addslashes(stripslashes(utf8_decode($rs->fields[0]))); + $result[$field] = addslashes(stripslashes($rs->fields[0])); //dlnsk (extra utf8_decode removed) }

      }

      }

            skodak Petr Skoda
            dlnsk Dmitry Pupinin (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.