(bug 839) Add URLENCODE magic word
[lhc/web/wiklou.git] / includes / Parser.php
index f3eb35a..a3c3adf 100644 (file)
@@ -2579,6 +2579,15 @@ class Parser
                        }
                }
 
+               # URLENCODE
+               if( !$found ) {
+                       $urlencode =& MagicWord::get( MAG_URLENCODE );
+                       if( $urlencode->matchStartAndRemove( $part1 ) ) {
+                               $text = $linestart . urlencode( $part1 );
+                               $found = true;
+                       }
+               }
+
                # LCFIRST, UCFIRST, LC and UC
                if ( !$found ) {
                        $lcfirst =& MagicWord::get( MAG_LCFIRST );