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

description meta tag is not run through the multi-lang filter even if filterall is set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.8, 1.9.4
    • Fix Version/s: 1.8.9, 1.9.5
    • Component/s: Filters
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      in file moodle/index.php lines 113-115 or so are

      print_header($SITE->fullname, $SITE->fullname, 'home', '',
      '<meta name="description" content="'. s(strip_tags($SITE->summary)) .'" />',
      true, '', user_login_string($SITE).$langmenu);

      This creates the meta tag "description" by stripping tags from the site "summary". However, if the summary contains text for multiple languages, this causes all languages to be simply concatenated (not even a space is added). When filterall is set, the content should be run through multilang filter.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/May/09