this code has a URL in it, how do i use php to decode the url out of it:
<script type = 'text/javascript' > eval(function(p, a, c, k, e, d) {
while(c--)if(k[c])p = p.replace(new RegExp('\\b' + c.toString(a) + '\\b', 'g'), k[c]); return p}
('1l.1k(\'<7 13="1j"1i="1h:1g-1f-1e-1d-1c"p="o"n="m"1b="3://b.5.a/9/1a.19"><2 1="t"0="s"/><2 1=...
Had a question from a client which stumped me.
They are using IIS 6.0 and for some reason, instead of making a normal request for a page on their server which I'll call www.domain.com/Default.aspx someone typed www.domain.com/Default.aspx/randomstuff
It seems that IIS's response was to serve Default.aspx as normal, but, as far as the b...
Hi, I have a pager on a table using ajax and I would like each such request also to change the browser's url, so when I hit refresh button I won't skip back to first page. I was fighting the Url parameter of AjaxOptions, but it keeps winning over me. Please help.
Trim
...
What's the best way to open a URL feed in codeigniter? I'm assuming I can't put the URL in a file upload input, so should I use a normal text input and then validate that the URL is not malicious? If so, what validation tests should I perform on the user inputted string? Would checking the file extension be enough or can this easily be m...
We have several forms which we created in adobe livecycle designer. Each form has a submit button to post the data typed in the PDF fields back to a URL. The problem is that we want to change the post URL at runtime dynamically.
We decompressed the pdf and viewed it in wordpad and found the URL in plain text. We then attempted to ope...
I am trying to optimize my ASP.NET MVC application using some techniques that include URL generation tweaking a la: http://www.chadmoran.com/blog/2009/4/23/optimizing-url-generation-in-aspnet-mvc-part-2.html
If the speed difference is so large between using RouteValueDictionary in place of anonymous classes, then should I also look to u...
Is there a way to separate the URL name in a hyperlink so it continues onto the next line? In the application I am using I need to use a long URL and the space is limited so it wraps around to the next line. However, a space is automatically added to it and the link is then broken. Is there a continuation character to tell the applica...
Python has a function urljoin that takes two URLs and concatenates them intelligently. Is there a library that provides a similar function in c++?
urljoin documentation: http://docs.python.org/library/urlparse.html
And python example:
urljoin('http://www.cwi.nl/%7Eguido/Python.html', 'FAQ.html') ==> 'http://www.cwi.nl/%7Eguido/FAQ.ht...
I want to use java's URLEncoder class to encode my url strings. However, by default it converts spaces to '+' (plus sign). I'd like it to use '-' instead (similar to how this site encodes its urls).
I'm wondering what the best way to do this is? Should I just use its built in functionality and then do a string replace (from '+' to '-...
Greetings all,
I am trying to download 'gz' file using URL class .Code snippet is as:
URL url = new URL("ftp://ftp.wwpdb.org/pub/pdb/data/structures/all/pdb/pdb132l.ent.gz");
InputStream conn = new GZIPInputStream(url.openStream());
But it throws the error:
Exception in thread "main"
java.net.UnknownHostException:
ftp.wwpdb.o...
What are extensibility points of URL generation in ASP.NET MVC?
Routes - virtual path depends on it
???
Addendum 1
Particularily, I need to control not only path part of URL but the host also. And I'd like to embed my generation logics into MVC Framework so that any call to standard Html.ActionLink method would involve my logics. It ...
In a Windows app we have a link to create a document in our Sharepoint Wiki (socially created help system)
http://maxnet/IT/Development/_layouts/CreateWebPage.aspx?List={9d81229a%2D29f5%2D4dc1%2D80f8%2Deb10c55b906b}&RootFolderUrl=Help%20Wiki&Name=HowToPrint
Calling this page several time, even after the Wiki doc was created sti...
I'm trying to use Html.RouteLink within a view to generate a link to a named anchor on another page. There's a few definitions for RouteLink that include a fragment option but I'm trying to figure out if there's another way.
public static string RouteLink(
this HtmlHelper htmlHelper,
string linkText,
string routeName,
st...
Hi,
I would be grateful to find out some really weird things I have seen on facebook URLs
If I bookmark this URL (found when JS is enabled)
http://www.facebook.com/HumanRightsWatch?v=app_2344061033#!/HumanRightsWatch?v=box_3
Then disable JS
I then proceed to revisit the same url
e.g. http://www.facebook.com/HumanRightsWatch?v=app_2...
Hi folks :)
I`m trying to read an image from an URL (with the java package
java.net.URL) to a byte[]. "Everything" works fine, except that the content isnt being enterely read from the stream (the image is corrupt, it doesnt contain all the image data)... The byte array is being persisted in a database (BLOB). I really dont know what t...
Hey,
I have some content with a list of URLs contained in it.
I am trying to grab all the URLs out and put them in an array.
I have this code
content = "Here is the list of URLs: http://www.google.com http://www.google.com/index.html"
urls = content.scan(/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*...
Hello everyone!
I am trying to pass arguments to this CGI form (http://www.westegg.com/inflation/) through the URL, so I don't have to manually type them in, and so that I can generate URLs through other means for faster use.
Here is the CGI form code from the site:
<form action="infl.cgi" method="post">
Enter the amount of money: <i...
I need to refer to URLs such as the one mentioned in the title for my dissertation and I'm not sure what the technical term is (or if one exists).
It's the foo=bar part that I'm particularly interested in as I use it as an indication that a directory traversal vulnerability may be present.
Thanks
...
According to the IEEE citation style reference, in case we cite urls the access time of the url should be indicated as well.
Does anybody know how to indicate this when using BibTeX?
Thanks,
Zoltan
...
I have a few restricted areas on the site, for which I would like to specify login_required decorator. However I would like to do that once per inclusion in main urls.py, not per individual url in included urls.py
So instead of:
/private/urls.py:
(r'^profile/$', login_required(profile)),
I'd do something along the lines:
/urls.py
...