Encode slashes and remove tags from images

quicksketch - March 31, 2007 - 07:26
Project:Textimage
Version:5.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:danielb
Status:patch (code needs work)
Description

Sorry I keep making so many issues :) I'm correcting my own code, and I just keep finding all kinds of problems.

When a generated text image contains a slash, the output is incorrect and only shows content after the last slash. Also, HTML tags should probably be removed before showing the image. For example, a text image displaying "Are you sure you want to delete <em>My Node</em>? shows "em>?".

Both issues contribute to this problem. The attached patch encodes slashes and removes tags.

AttachmentSize
textimage_path.patch1.29 KB

#1

wundo - April 10, 2007 - 03:04

This patch didn't solved the issue here. Only the things after the last "/" appears.

#2

danielb - February 12, 2008 - 03:20
Assigned to:Anonymous» danielb

I have also been waiting for a fix to this problem. So here it is.

AttachmentSize
textimage_strreplace.patch774 bytes

#3

Rowanw - August 8, 2008 - 00:49
Status:patch (code needs review)» patch (code needs work)

Neither of these patches could possibly fix the slash issue, the problem goes much deeper.

 
 

Drupal is a registered trademark of Dries Buytaert.