necrox Posted March 16, 2011 Report Share Posted March 16, 2011 I have an url encoding problem which ends up with an error message after using this "cleanup" function {url:multireplace:|:%3A|%2F|%2E::|/|.} for the following url: ftp%3A%2F%2Fftp.hp.com%2Fpub%2Fsoftlib%2Fsoftware12%2FCOL17052%2Fja-45284-18/upd-PCL6-X32-5_2_6_9321.exe I have tried to multireplace the html encoded characters using this function. I figured out the problem. It is the red marked colon. Is there any chance to use a colon as character in multireplace function without producing a crash? Link to comment Share on other sites More sharing options...
shawn Posted March 17, 2011 Report Share Posted March 17, 2011 Use a slash before it as so: {url:multireplace:|:%3A|%2F|%2E:\:|/|.} Link to comment Share on other sites More sharing options...
necrox Posted March 17, 2011 Author Report Share Posted March 17, 2011 First of all sorry for the bad image link in my previous post. I've fixed it. I've already tried the backslash thing. And it ends up with the same error message / crash. Link to comment Share on other sites More sharing options...
shawn Posted March 30, 2011 Report Share Posted March 30, 2011 What version are you using? This works perfectly for me. Link to comment Share on other sites More sharing options...
necrox Posted March 30, 2011 Author Report Share Posted March 30, 2011 (edited) Ketarin 1.6b4 on Windows 7 Enterprise x64. EDIT: same error message on Windows XP SP3 x32. Edited March 30, 2011 by necrox Link to comment Share on other sites More sharing options...
necrox Posted April 7, 2011 Author Report Share Posted April 7, 2011 If you want to give it a try: the name of the app is "HP Universal Print Driver (Setup PCL6 32-bit)" in the online database. For me it does not work at all. Link to comment Share on other sites More sharing options...
shawn Posted April 9, 2011 Report Share Posted April 9, 2011 You're right, I can't get that one to work, either. There's other ways to make it happen, though (and a couple other errors in that profile). For this one, instead of grabbing the entire URL, just get the part after the %3A: (?<=targetPage=.+?tp%3A).+?(?>\.exe) Then assemble the URL afterwards. This enables you to switch it to HTTP, too: http:{url:multireplace:|:%2F|%2E:/|.} Link to comment Share on other sites More sharing options...
floele Posted April 10, 2011 Report Share Posted April 10, 2011 I will fix the error for the next version. Also, I will add a function "urldecode" that should work better for your case. Link to comment Share on other sites More sharing options...
necrox Posted April 11, 2011 Author Report Share Posted April 11, 2011 (and a couple other errors in that profile) What kind of other errors? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now