From: <oh...@us...> - 2006-11-01 23:23:32
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv11499 Modified Files: tiki-setup_base.php Log Message: temporary fix for url until url regex from type check allows (almost) any valid url Index: tiki-setup_base.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-setup_base.php,v retrieving revision 1.107 retrieving revision 1.108 diff -u -d -r1.107 -r1.108 --- tiki-setup_base.php 1 Nov 2006 21:23:02 -0000 1.107 +++ tiki-setup_base.php 1 Nov 2006 23:23:30 -0000 1.108 @@ -111,7 +111,8 @@ $patterns['stringlist'] = "/^[^<>\"#]*$/"; // to, cc, bcc (for string lists like: user1;user2;user3) $patterns['vars'] = "/^[-_a-zA-Z0-9]*$/"; // for variable keys $patterns['hash'] = "/^[a-z0-9]*$/"; // for hash reqId in live support -$patterns['url'] = "/^https?:\/\/[^<>\"']*$/"; // needed for the htmlpage inclusion in tiki-editpage +// needed for the htmlpage inclusion in tiki-editpage +$patterns['url'] = "/^https?:\/\/[^<>\"']*$/"; // TODO: allow relative / local urls, too. // parameter type definitions. prepend a + if variable may not be empty, e.g. '+int' $vartype['id'] = '+int'; @@ -154,7 +155,7 @@ $vartype['actpass'] = '+string'; // remind password page $vartype['user'] = '+string'; // remind password page $vartype['remind'] = 'string'; // remind password page -$vartype['url'] = 'url'; +// $vartype['url'] = 'url'; // TODO: uncomment, as soon as url pattern above is fixed // galaxia $vartype['aid'] = '+int'; $vartype['description'] = 'string'; |