lighthouse svn beacon escaping '

alloca's Avatar


20 Aug, 2007 05:59 PM

using the script at

If you use ' (apostrophe) in your commit log your curl command will fail and you won't get your nifty updates

the example script include the line:

cmd = "#{CURL} -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d '#{changeset_xml.gsub(/'/, "\'").strip}' #{url}"

The gsub is incorrect:

"he's got's a knife!".gsub(/'/, "\'") => "hes got's a knife!s gots a knife!s a knife!"

Need to do more escaping:

"he's got's a knife!".gsub(/'/, "\\'") => "he\'s got\'s a knife!"


Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac