Small XHTML non-comliancy in function random_image with CMSMS 0.13
Posted: Tue May 30, 2006 1:52 pm
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"
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"