|
|
 |
Project Home
•
Blog
•
Forums
•
Wiki
•
Known Issues
• External Project Link
• Contact Project
BlogCFC Issue: 5.9.3.005 Images not showing up.
| Name: |
5.9.3.005 Images not showing up. |
| ID: |
133 |
| Project: |
BlogCFC |
| Type: |
Bug |
| Area: |
Administration |
| Severity: |
Normal |
| Status: |
Fixed |
| Related URL: |
|
| Creator: |
Jon Karis |
| Created: |
06/15/09 2:32 PM |
| Updated: |
06/18/09 9:51 PM |
| Description: |
In admin/entry.cfm, around line 400, the rootURL is passed through the fixURL utility. However, the fixURl utility (org/Camden/blog/utils.cfc - line 189) removes double slashes (//). This renders the image tags invalid as they start with http:/ instead of http://. I updated my fixURL to look like this: <code> <cffunction name="fixUrl" access="public" returntype="string" output="false" hint="Ensures a URL is properly formatted."> <cfargument name="url" type="string" required="true" /> <cfif findnocase("http://", arguments.url) > <cfset arguments.url = reReplace(arguments.url, "http://", "", "all")> <cfset arguments.url = reReplace(arguments.url, "\/{2,}", "/", "all")> <cfset arguments.url = "http://" & arguments.url> <cfreturn arguments.url> <cfelse> <cfreturn reReplace(arguments.url, "\/{2,}", "/", "all")> </cfif> </cffunction> </code> which fixes it, but I am sure that there is a much better way to do this.
|
| History: |
Created by jkaris (Jon Karis) : 06/15/09 2:32 PM
Updated by cfjedimaster (Raymond Camden) : 06/18/09 9:51 PM fixed in latest (going live in 10)
|
To add a comment to this bug, please login using the link above.
|