link
Regular


Joined: Dec 24, 2004
Posts: 56
|
Posted:
Sat Oct 22, 2005 9:46 am |
|
I am having problems with the 2nd page of and download section. Tells me i have used invalid characters... you know the error.
Here is an example page. Scroll down to botton click page 2 and see the error.
http://www.yourbeats.com/index/downloads-cat5.html
Here is my download section from the header.php
Array
Code:"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload(comments|details|editorial)&lid=([0-9]*)&ttitle=([/:\-\'{}()._&a-zA-Z0-9+= ]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=modifydownloadrequest&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=brokendownload&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=NewDownloads&newdownloadshowdays=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=NewDownloadsDate&selectdate=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=getit&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=ratedownload&lid=([0-9]*)&ttitle=([/:\-\'{}()._&a-zA-Z0-9+= ]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=ratedownload&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=ratedownload&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=(TopRated|MostPopular)&ratenum=([0-9]*)&ratetype=(num|percent)'",
"'(?<!/)modules.php\?name=Downloads&d_op=(AddDownload|NewDownloads|MostPopular|TopRated)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&cid=([0-9]*)&orderby=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&cid=([0-9]*)&min=([0-9]*)&orderby=([a-zA-Z0-9+]*)&show=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=search&query=([/:\-\'{}()._&a-zA-Z0-9+=]*)&min=([0-9]*)&orderby=([a-zA-Z0-9+]*)&show=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=search&query=([/:\-\'{}()._&a-zA-Z0-9+= ]*)&orderby=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=search&query=([/:\-\'{}()._&a-zA-Z0-9+=]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=outsidedownloadsetup&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads'",
|
Url Out
Code: "downloadview-\\1-\\2-\\3.html",
"download-mod-\\1.html",
"download-broken-\\1.html",
"download-shownew-\\1.html",
"download-seldate-\\1.html",
"download-file-\\1.html",
"ratedownload-\\1-\\2.html",
"ratedownload-\\1.html",
"ratedownload-\\1.html",
"download-\\1-\\2-\\3.html",
"downloads-\\1.html",
"download\\1-orderby\\2.html",
"download\\1-\\2-\\3-\\4.html",
"download-search-\\1-\\2-\\3-\\4.html",
"download-search-\\1-\\2.html",
"download-search-\\1.html",
"download-outside-\\1.html",
"downloads-cat\\1.html",
"downloads-cat\\1.html",
"downloads.html",
|
and the htaccess rewrite.. for downloads
Code:#Downloads
RewriteRule ^downloadview-(comments|details|editorial)-([0-9]*)-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=viewdownload$1&lid=$2&ttitle=$3
RewriteRule ^download-mod-([0-9]*).html modules.php?name=Downloads&d_op=modifydownloadrequest&lid=$1
RewriteRule ^download-broken-([0-9]*).html modules.php?name=Downloads&d_op=brokendownload&lid=$1
RewriteRule ^download-shownew-([0-9]*).html modules.php?name=Downloads&d_op=NewDownloads`"wdownloadshowdays=$1
RewriteRule ^download-seldate-([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=NewDownloadsDate&selectdate=$1
RewriteRule ^download-file-([0-9]*).html modules.php?name=Downloads&d_op=getit&lid=$1
RewriteRule ^ratedownload-([0-9]*)-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=ratedownload&lid=$1&ttitle=$2
RewriteRule ^ratedownload-([0-9]*).html modules.php?name=Downloads&d_op=ratedownload&lid=$1
RewriteRule ^download-(TopRated|MostPopular)-([0-9]*)-(num|percent).html modules.php?name=Downloads&d_op=$1&ratenum=$2&ratetype=$3
RewriteRule ^downloads-(AddDownload|NewDownloads|MostPopular|TopRated).html modules.php?name=Downloads&d_op=$1
RewriteRule ^download([0-9]*)-orderby([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1("derby=$2
RewriteRule ^download([0-9]*)-([0-9]*)-([a-zA-Z0-9+]*)-([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1&min=$2("derby=$3&show=$4
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([0-9]*)-([a-zA-Z0-9+]*)-([0-9]*).html modules.php?name=Downloads&d_op=search&query=$1&min=$2("derby=$3&show=$4
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=search&query=$1("derby=$2
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=search&query=$1
RewriteRule ^download-outside-([0-9]*).html modules.php?name=Downloads&d_op=outsidedownloadsetup&lid=$1
RewriteRule ^downloads-cat([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1
RewriteRule ^downloads.html downloads.html
|
does anyone see what would be causeing this error. It worked the last 2 days.. and then nothing today. Poof.
Thanks ALot Ravenscripts. |
_________________ Only registered users can see links on this board! Get registered or login! & Only registered users can see links on this board! Get registered or login! |
|
Raven

|
Posted:
Sat Oct 22, 2005 6:32 pm |
|
In mainfile.php you will see code similar toCode:foreach ($_GET as $secvalue) {
if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
(eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
(eregi("\"", $secvalue))) {
die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
}
}
|
Those are the words/characters not allowed. In your downloads you have a title(s) that is violating those rules. |
|
|