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

Emoticon filter interferes with <pre> content

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Automated tests provided.

      Show
      Automated tests provided.
    • Workaround:
      Hide

      It should be possible to embed the code to be shown in
      <span class="nolink">
      </span>

      <span class="nolink">
      <pre>
      - (id)initWithBitmapDataPlanes:(unsigned char **)planes 
                          pixelsWide:(NSInteger)width 
                          pixelsHigh:(NSInteger)height 
                       bitsPerSample:(NSInteger)bps 
                     samplesPerPixel:(NSInteger)spp 
                            hasAlpha:(BOOL)alpha 
                            isPlanar:(BOOL)isPlanar 
                      colorSpaceName:(NSString *)colorSpaceName 
                        bitmapFormat:(NSBitmapFormat)bitmapFormat 
                         bytesPerRow:(NSInteger)rowBytes 
                        bitsPerPixel:(NSInteger)pixelBits;
      </pre>
      </span>
      

      Show
      It should be possible to embed the code to be shown in <span class="nolink"> </span> <span class="nolink"> <pre> - (id)initWithBitmapDataPlanes:(unsigned char **)planes pixelsWide:(NSInteger)width pixelsHigh:(NSInteger)height bitsPerSample:(NSInteger)bps samplesPerPixel:(NSInteger)spp hasAlpha:(BOOL)alpha isPlanar:(BOOL)isPlanar colorSpaceName:(NSString *)colorSpaceName bitmapFormat:(NSBitmapFormat)bitmapFormat bytesPerRow:(NSInteger)rowBytes bitsPerPixel:(NSInteger)pixelBits; </pre> </span>
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_28_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull from Repository:
    • Pull 3.6 Branch:
    • Pull 3.7 Branch:
    • Pull Master Branch:
      MDL-42638-master

      Description

      1. Enable the emoticon filter on your site
      2. Create a forum post with the following content:

      Test content:
      <pre>
      - (id)initWithBitmapDataPlanes:(unsigned char **)planes 
                          pixelsWide:(NSInteger)width 
                          pixelsHigh:(NSInteger)height 
                       bitsPerSample:(NSInteger)bps 
                     samplesPerPixel:(NSInteger)spp 
                            hasAlpha:(BOOL)alpha 
                            isPlanar:(BOOL)isPlanar 
                      colorSpaceName:(NSString *)colorSpaceName 
                        bitmapFormat:(NSBitmapFormat)bitmapFormat 
                         bytesPerRow:(NSInteger)rowBytes 
                        bitsPerPixel:(NSInteger)pixelBits;
      </pre>
      

      Expected result:
      The content in <pre> is preserved

      Actual result:
      Sad smiley face images are replaced in the pre content.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Nov/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 45 minutes
                  45m