[Home]WikiPatches/EasyUploadUrl

UseModWiki | WikiPatches | RecentChanges | Preferences

With 1.0, I hated having to hard-code the value for UploadUrl. Fortunately, this simple patch allows me to use something like $UploadUrl = '/uploads'
What is diffrent from the default in 1.0? - ErikJohansson

@@ -1939,7 +1942,7 @@
   my ($url) = @_;
   my ($site, $imagePrefixes);

-  $imagePrefixes = 'http:|https:|ftp:';
+  $imagePrefixes = 'http:|https:|ftp:|/';
   $imagePrefixes .= '|file:'  if (!$LimitFileUrl);
   return 0  unless ($url =~ /^($imagePrefixes).+\.$ImageExtensions$/);
   return 0  if ($url =~ /"/);      # No HTML-breaking quotes allowed

UseModWiki | WikiPatches | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited November 16, 2007 3:08 pm by MarkusLude (diff)
Search: