Jump to content


Issue information

  • #024791

  • Fixed

  • 2.2.2

  • 2.0.4

  • 0 - None Assigned


Issue Confirmations

  • Yes (0)No (0)
Photo

"Link to File" does not work with this URL.

Posted by appliancejunk on 13 August 2010 - 06:45 AM

"Link to File" does not work with this URL.

https://secured.whir.../$FILE/L-55.pdf

But "Link to File" works with this URL

http://136.166.4.200...vice_Manual.pdf


Is it because of the length of the URL that it does not work?

If so can I adjust the max length a URL can be?

The URL that does not work I can use with SMF download system just fine. http://www.smfhacks....-system-pro.php

I found a bit of a work around. If I go to bit.ly and shorten up the https URL and use the shorter URL for the "Link to File" it will work, but it misses the file size info.

Any help would be greatly appreciated, thanks!

Updating status to: Confirmed - General

It's because the dollar sign is converted to an entity by IPB for security reasons.  I'm iffy on changing this.  Will think it over and do some testing.


Also applies to urls with this sign - "!". Just found this today...


Added this:
			$info['record_location'] = html_entity_decode($info['record_location']);
Before thois:
			$this->registry->output->silentRedirect( $info['record_location'] );

Now it's working well. Hope it will not cause any danger for board's security...


It shouldn't.  I will probably end up doing something similar (we have a proper "decode" method that handles all the translations our input processor does that I will use instead).


Updating status to: Fixed
Updating severity to: 2 - Fair
Issue fixed in: 2.3.0 Beta 1

I had to update IPSText::UNhtmlspecialchars() to unconvert the $ symbol, but otherwise I'm using this method in a similar manner as Aoyagi Ritsuka suggested.  Note there are two places in the file this change needs to be made.






0 user(s) are reading this issue

0 members, 0 guests, 0 anonymous users