On Saturday 19 May 2012 00:50 Georg Ehrke wrote:
> Am 19.05.2012 um 00:37 schrieb Michael Gapczynski:
> > I thought about that, but wouldn't that mean you'd also have to check for
> > .com, .net, .org, etc. ?
>
> Just:
> if(preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i',
> $_GET['redirect)){ //deny }
Great. Now I know how to ask about regexps ;-)
(and who to tell about trimming excess quotes...)
--
Med venlig hilsen / Best Regards
Thomas Tanghus
_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud