Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4220
Latest: agolac
New This Month: 1
New This Week: 1
New Today: 0
Stats
Total Posts: 42854
Total Topics: 7464
Most Online Today: 86
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 46
Total: 46

Author Topic: "&" Character is replaced with "&"  (Read 4769 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: 16257
    • 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: 16257
    • 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: 16257
    • 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
7180 Views
Last post September 28, 2007, 11:46:07 am
by smalldonkey
2 Replies
6449 Views
Last post November 06, 2007, 08:55:18 pm
by dry3210
1 Replies
4810 Views
Last post March 26, 2011, 01:26:09 pm
by SMFHacks
8 Replies
6302 Views
Last post September 19, 2011, 02:00:29 pm
by VividViews
6 Replies
5016 Views
Last post May 12, 2012, 05:37:44 pm
by mariodieck

+- Recent Topics

Is the PayPal Sandbox still working? by Nicole
June 02, 2023, 06:51:18 am

Question on Completed Listing & Reserve Price by Nicole
June 01, 2023, 06:06:12 pm

[Mod]GDPR Helper by Nicole
May 29, 2023, 11:58:49 pm

RSS Feed Poster Database Error by SMFHacks
May 22, 2023, 06:26:18 pm

Errors With Older Version. by Ken.
May 09, 2023, 05:35:40 pm

Pretty Urls SEO Pro by SMFHacks
May 06, 2023, 03:30:11 pm

New Post Image Upload Error by Mike66
April 28, 2023, 07:30:28 am

Copyright Removal Key by SMFHacks
April 03, 2023, 02:44:28 pm

Converting from Aeva Media by sudhakar
April 02, 2023, 11:09:54 am

Using SMF's Built-in Search Algorithm by shuban
March 27, 2023, 09:15:10 am

Powered by EzPortal