Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4260
Latest: Verrick
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43323
Total Topics: 7527
Most Online Today: 302
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 297
Total: 297

Author Topic: "&" Character is replaced with "&"  (Read 6685 times)

0 Members and 1 Guest are viewing this topic.

Offline witchyu

  • Member
  • *
  • Posts: 2
    • View Profile
"&" Character is replaced with "&"
« on: April 25, 2013, 01:24:21 pm »
Hi!

I have a problem with Download System 1.4.1 (not pro) and SMF 2.0.4 ...
Character & in the link line is automatically replaced with & when i press a download buttom...
To be more clearly: when you try to add a new downlad and in the window "Upload Url: " you put al link who has a "&" character the end result when you click a downlond button the characters will change in to "&" .
For example:
Original link : http://www.familienforum.biz/DB/index.php?page=EntryFileDownload&fileID=144

The out going link: http://www.familienforum.biz/DB/index.php?page=EntryFileDownload&fileID=144

It already was such a question here http://www.smfhacks.com/index.php/topic,6731.0.html

Administrator SMFHacks wrote
Quote
Open the Sources/Downloads.php file
Find all instances of

Code: [Select]
$fileurl = htmlspecialchars($_REQUEST['fileurl'],ENT_QUOTES);
Replace with

Code: [Select]
$fileurl = mysql_escape_string($_REQUEST['fileurl']);

Bhut when i do that the download crashes

What can be done, please help


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16464
    • View Profile
Re: "&" Character is replaced with "&"
« Reply #1 on: April 25, 2013, 01:34:15 pm »
What do you mean by crashes? What happens?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Branko

  • Member
  • *
  • Posts: 3
    • View Profile
Re: "&" Character is replaced with "&"
« Reply #2 on: April 25, 2013, 03:28:54 pm »
Bhut when i do that the download crashes...

I know what is going on (the same site), after change two lines (1402 and 1799 in Downloads2.php) result is:
Code: [Select]
Parse error: syntax error, unexpected T_IF in /home/..../Sources/Downloads2.php on line 1

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16464
    • View Profile
Re: "&" Character is replaced with "&"
« Reply #3 on: April 25, 2013, 03:32:03 pm »
Odd attach that file want to take a look.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Branko

  • Member
  • *
  • Posts: 3
    • View Profile
Re: "&" Character is replaced with "&"
« Reply #4 on: April 25, 2013, 04:44:49 pm »
In attachment..  :)

Offline witchyu

  • Member
  • *
  • Posts: 2
    • View Profile
Re: "&" Character is replaced with "&"
« Reply #5 on: April 26, 2013, 02:02:25 am »
Bhut when i do that the download crashes...

I know what is going on (the same site), after change two lines (1402 and 1799 in Downloads2.php) result is:
Code: [Select]
Parse error: syntax error, unexpected T_IF in /home/..../Sources/Downloads2.php on line 1
Yes that is it, thanks Branko  ;)

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16464
    • View Profile
Re: "&" Character is replaced with "&"
« Reply #6 on: April 27, 2013, 01:48:31 pm »
I have look at the file I can't see anything wrong.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Branko

  • Member
  • *
  • Posts: 3
    • View Profile
Re: "&" Character is replaced with "&"
« Reply #7 on: April 30, 2013, 04:52:02 am »
I know...  :)

Thanks

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
9081 Views
Last post September 28, 2007, 11:46:07 am
by smalldonkey
2 Replies
8397 Views
Last post November 06, 2007, 08:55:18 pm
by dry3210
1 Replies
6779 Views
Last post March 26, 2011, 01:26:09 pm
by SMFHacks
8 Replies
8609 Views
Last post September 19, 2011, 02:00:29 pm
by VividViews
6 Replies
6861 Views
Last post May 12, 2012, 05:37:44 pm
by mariodieck

+- Recent Topics

Failed to open stream: File name too long by Randem
June 21, 2024, 10:40:41 am

Attachment images Upsidedown or Sideways by SMFHacks
June 18, 2024, 10:53:24 am

JSON decode error: The maximum stack depth has been exceeded by SMFHacks
June 14, 2024, 10:15:16 pm

“Insert from Gallery” by donk
June 10, 2024, 01:26:57 pm

Pretty Urls extras by SMFHacks
May 13, 2024, 10:28:54 am

Mod question by Verrick
May 11, 2024, 02:42:50 pm

i have paid but cant download ad pro. by SMFHacks
May 02, 2024, 11:29:38 pm

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Powered by EzPortal