Login

    Register

This is to notify all, that we will be decommissioning http://riaforge.org/ ("Site") soon. This decision has been taken due to business reasons. If you are interested in reviewing or downloading any project or files available at Site, please do so, by April 16, 2019, 12 noon PST , as per license terms associated therewith. Past that, you will not be able to access the projects or files.Should you have any concerns/suggestions/query, feel free to Contact Us.
Managed Hosting

PROJECT CATEGORIES

 

BlogCFC
Project Home Blog Forums Wiki Known Issues Screenshots 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.

This is to notify all, that we will be decommissioning http://riaforge.org/ ("Site") soon. This decision has been taken due to business reasons. If you are interested in reviewing or downloading any project or files available at Site, please do so, by April 16, 2019, 12 noon PST , as per license terms associated therewith. Past that, you will not be able to access the projects or files.Should you have any concerns/suggestions/query, feel free to Contact Us.