[SVN] r3790 (Blogging)

Allan Odgaard throw-away-1 at macromates.com
Sun Jun 25 14:41:20 UTC 2006


upload_image:
• user only gets to edit the base name (not extension nor date prefix)
• alternative text is based on the new name provided by the user
• alternative text is entity-encoded when inserted in HTML mode
• calling CocoaDialog and sips now use ‘e_sh’ from lib/escape (the previous escaping wasn’t adequate)

I noticed that when uploading an image to WP the returned URL is not properly URL-escaped. I would however consider this a bug of WP — adding URL escaping on the last path of the URL returned could be used as a workaround, but then we need to detect when servers do proper URL escaping (to avoid double-escaping) — also WP seems unable to deal with substituting a space with a plus when requesting uploaded files (so if we do URL escaping, we need to use %20)

Changed:
U   trunk/Bundles/Blogging.tmbundle/Support/lib/blogging.rb



More information about the textmate-dev mailing list