WebGUI 3.6.2 release
This commit is contained in:
parent
6c593771e1
commit
a389e8ff95
9 changed files with 127 additions and 65 deletions
|
|
@ -11,6 +11,7 @@ package WebGUI::URL;
|
|||
#-------------------------------------------------------------------
|
||||
|
||||
use strict;
|
||||
use URI::Escape;
|
||||
use WebGUI::Session;
|
||||
use WebGUI::Utility;
|
||||
|
||||
|
|
@ -26,6 +27,11 @@ sub append {
|
|||
return $url;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub escape {
|
||||
return uri_escape($_[0]);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub gateway {
|
||||
my ($url);
|
||||
|
|
@ -52,11 +58,17 @@ sub page {
|
|||
return $url;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub unescape {
|
||||
return uri_unescape($_[0]);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub urlize {
|
||||
my ($title);
|
||||
$title = lc($_[0]);
|
||||
$title =~ s/ /_/g;
|
||||
$title =~ s/\.$//g;
|
||||
$title =~ s/[^a-z0-9\-\.\_]//g;
|
||||
return $title;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue