Small XHTML non-comliancy in function random_image with CMSMS 0.13

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
magicpio
Forum Members
Forum Members
Posts: 30
Joined: Mon Dec 05, 2005 7:54 pm

Small XHTML non-comliancy in function random_image with CMSMS 0.13

Post by magicpio »

The line, which finally returns the image tag is
return '';
but should be
return '';
(missing slash before closing img tag).

Additional improvement:
If an image name contains spaces, e.g. "my image.jpg" a validation check
will result in erroneous URI locator.
Proposal: scan image name and path for spaces and replace with %20.
This would result in "my%20image.jpg"
Post Reply

Return to “Modules/Add-Ons”