Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 251
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 121
Total: 121

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

+- Recent Topics

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

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal