Jump to content
Ketarin forum

url encode problem


necrox
 Share

Recommended Posts

I have an url encoding problem which ends up with an error message

 

d687d36117.jpg

 

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

  • 2 weeks later...
  • 2 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.