aboutsummaryrefslogtreecommitdiff
path: root/h-source
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-08-30 05:28:06 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-08-30 05:28:06 +0000
commit3136958464992aa22ac2fe5b6788ccbceb3d80ea (patch)
tree32fecea85bffa269f23255567a91694c70ee57cd /h-source
parent50b9dfd40f58c8172d9f992852d0c7d0d2800780 (diff)
improved URL detection
Diffstat (limited to 'h-source')
-rw-r--r--h-source/Application/Include/myFunctions.php2
-rw-r--r--h-source/Public/Css/main.css6
2 files changed, 7 insertions, 1 deletions
diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php
index c299942..5a59d0b 100644
--- a/h-source/Application/Include/myFunctions.php
+++ b/h-source/Application/Include/myFunctions.php
@@ -319,7 +319,7 @@ function checkUrl($url)
{
// $match = '/^http\:\/\/(www\.)?[a-zA-Z0-9\-\_]+(\.[a-zA-Z0-9\-\_]+)?\.(com|net|it|info|org|eu|uk)((\/[a-zA-Z0-9\_\-\+]+)+[\/]?)?(\?([a-zA-Z0-9\_\-\+\s]+\=[a-zA-Z0-9\_\-\s\+\&amp;]+)+)?(#[a-zA-Z0-9\_\-\+\s]+)?([\s]*)?$/';
- $match = '/^http\:\/\/(www\.)?[a-zA-Z0-9\-\_]+(\.[a-zA-Z0-9\-\_]+)?\.(com|net|it|info|org|eu|uk|ca|us|cl)((\/[a-zA-Z0-9\_\-\+]+)*(\/([a-zA-Z0-9\_\-\.\+]+\.(php|html|htm|asp|aspx|jsp|cgi))?)?)?(\?([a-zA-Z0-9\_\-\+\s]+\=[a-zA-Z0-9\_\-\s\+\&amp;]+)+)?(#[a-zA-Z0-9\_\-\+\s]+)?([\s]*)?$/';
+ $match = '/^http(s)?\:\/\/(www\.)?[a-zA-Z0-9\-\_]+(\.[a-zA-Z0-9\-\_]+)?\.(com|net|it|info|org|eu|uk|ca|us|cl)((\/[a-zA-Z0-9\_\-\+]+)*(\/([a-zA-Z0-9\_\-\.\+]+\.(php|html|htm|asp|aspx|jsp|cgi))?)?)?(\?([a-zA-Z0-9\_\-\+\s]+\=[a-zA-Z0-9\_\-\s\+\&amp;]+)+)?(#[a-zA-Z0-9\_\-\+\s]+)?([\s]*)?$/';
if (preg_match($match,$url))
{
diff --git a/h-source/Public/Css/main.css b/h-source/Public/Css/main.css
index 88a4605..f438227 100644
--- a/h-source/Public/Css/main.css
+++ b/h-source/Public/Css/main.css
@@ -825,6 +825,12 @@ ins
margin:20px 0px;
}
+.formEntry input, .formEntry textarea {
+ width:450px;
+ padding:3px;
+ border: 1px solid #CECECE;
+}
+
.form_input_text input,.form_textarea textarea {
width:450px;
padding:3px;