Permalink
Browse files

Output lib: Added url() wrapper for rawurlencode().

  • Loading branch information...
tchalvak committed Aug 3, 2013
1 parent 81b8ff3 commit 36cede8d7fe2cf7a0806fcfa4c730d2ff0375ab9
Showing with 4 additions and 2 deletions.
  1. +4 −2 deploy/lib/control/lib_output.php
@@ -60,5 +60,7 @@ function replace_urls($string) {
return preg_replace("#((ht|f)tps?:\/\/{$host}{$port}{$path}{$query})#i", "<a target='_blank' class='extLink' rel='nofollow' href='$1'>$1</a>", $string);
}
-
-?>
+// Short alias for the raw url encoding function.
+function url($in){
+ return rawurlencode($in);
+}

0 comments on commit 36cede8

Please sign in to comment.