I tried adding the following comment to the blog with no luck:
once again - you are my hero!
I hadnt really been using "wrap selection as link" before today...
One thing that caught me though -- can you grep the selection for http, and/or edit the snippet to be:
<a href="http://${1:` # if the clipboard contains a single line, let's use that export __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 if [[ $(pbpaste|wc -l) -eq 0 ]] then pbpaste|sed 's/&/&/g' else echo http://site.com/ fi `}">${TM_SELECTED_TEXT:Link text...}</a>
On 26/7/2006, at 22:15, David Clark wrote:
I tried adding the following comment to the blog with no luck:
What was the error? Precondition failed?
I run both mod_security and a custom spam prevention scheme. The former is sometimes giving the precondition failed even for valid content.
once again - you are my hero!
Thanks :)
[...] One thing that caught me though -- can you grep the selection for http, and/or edit the snippet to be:
By greping you mean not use the clipboard when it doesn’t have http? Personally I also use it for relative links, so that’d be no good.
What was the error? Precondition failed?
Yes, that was it.
By greping you mean not use the clipboard when it doesn't have http? Personally I also use it for relative links, so that'd be no good.
duh, you are right -- never mind